diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b069894..2428d74 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,6 @@ jobs: - name: Set up Rust toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 with: - components: clippy, rustfmt target: wasm32-unknown-unknown - name: Install Cargo Binary Install diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 9a000cb..de88258 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -23,7 +23,6 @@ jobs: - name: Set up Rust toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 with: - components: clippy, rustfmt target: wasm32-unknown-unknown - name: Install Cargo Binary Install @@ -49,7 +48,6 @@ jobs: - name: Set up Rust toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 with: - components: clippy, rustfmt target: wasm32-unknown-unknown - name: Install Cargo Binary Install diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 428f42f..0ae0a87 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,15 +1,40 @@ repos: + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v3.1.0 + hooks: + - id: prettier + language: node + additional_dependencies: + - prettier@^3.6.2 + - prettier-plugin-tailwindcss@^0.6.6 + - repo: https://github.com/doublify/pre-commit-rust rev: v1.0 hooks: - id: fmt - id: clippy - - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + - repo: https://github.com/EmbarkStudios/cargo-deny + rev: 0.18.4 hooks: - - id: prettier - language: node - additional_dependencies: - - prettier@^3.2.5 - - prettier-plugin-tailwindcss@^0.6.0 + - id: cargo-deny + + # - repo: https://github.com/bnjbvr/cargo-machete + # rev: ba1bcd4 + # hooks: + # - id: cargo-machete + - repo: local + hooks: + - id: cargo-machete + name: cargo-machete + language: rust + entry: cargo machete + types: [file, toml] + files: Cargo\.(toml|lock) + pass_filenames: false + + - repo: https://github.com/DevinR528/cargo-sort + rev: v2.0.1 + hooks: + - id: cargo-sort + args: ['--workspace'] diff --git a/.prettierrc.json b/.prettierrc.json index 7fd3381..76bf1ca 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -2,6 +2,5 @@ "bracketSpacing": false, "printWidth": 120, "singleQuote": true, - "tabWidth": 4, - "trailingComma": "none" + "tabWidth": 4 } diff --git a/Cargo.lock b/Cargo.lock index d120708..700f24f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -949,7 +949,7 @@ dependencies = [ "openssl-probe", "openssl-sys", "schannel", - "socket2", + "socket2 0.5.9", "windows-sys 0.52.0", ] @@ -1048,9 +1048,9 @@ dependencies = [ [[package]] name = "deranged" -version = "0.4.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28cfac68e08048ae1883171632c2aef3ebc555621ae56fbccce1cbf22dd7f058" +checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e" dependencies = [ "powerfmt", "serde", @@ -1272,7 +1272,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "976dd42dc7e85965fe702eb8164f21f450704bdde31faefd6471dba214cb594e" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -2944,6 +2944,17 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "71dd52191aae121e8611f1e8dc3e324dd0dd1dee1e6dd91d10ee07a3cfb4d9d8" +[[package]] +name = "io-uring" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "046fa2d4d00aea763528b4950358d0ead425372445dc8ff86312b3c69ff7727b" +dependencies = [ + "bitflags 2.9.0", + "cfg-if", + "libc", +] + [[package]] name = "is_executable" version = "1.0.4" @@ -2986,7 +2997,7 @@ dependencies = [ "portable-atomic", "portable-atomic-util", "serde", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -3465,7 +3476,6 @@ version = "0.2.3" dependencies = [ "anyhow", "log", - "mdbook", "pulldown-cmark 0.13.0", "test-log", ] @@ -3485,8 +3495,6 @@ dependencies = [ "serde", "serde-keyvalue", "serde_json", - "test-log", - "toml 0.9.5", ] [[package]] @@ -3508,7 +3516,6 @@ dependencies = [ "semver", "serde", "serde_json", - "test-log", "toml 0.9.5", ] @@ -4522,7 +4529,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -4919,6 +4926,16 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "socket2" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807" +dependencies = [ + "libc", + "windows-sys 0.59.0", +] + [[package]] name = "spki" version = "0.7.3" @@ -5084,7 +5101,7 @@ dependencies = [ "getrandom 0.3.3", "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -5247,18 +5264,20 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.44.1" +version = "1.47.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f382da615b842244d4b8738c82ed1275e6c5dd90c459a30941cd07080b06c91a" +checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038" dependencies = [ "backtrace", "bytes", + "io-uring", "libc", "mio", "pin-project-lite", - "socket2", + "slab", + "socket2 0.6.0", "tokio-macros", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] diff --git a/book-example/Cargo.toml b/book-example/Cargo.toml index 1904aa8..baa0447 100644 --- a/book-example/Cargo.toml +++ b/book-example/Cargo.toml @@ -9,12 +9,12 @@ license.workspace = true repository.workspace = true version.workspace = true +[features] +default = ["button"] +button = [] + [dependencies] console_error_panic_hook = "0.1.7" console_log = "1.0.0" leptos = { version = "0.8.0", features = ["csr"] } log.workspace = true - -[features] -default = ["button"] -button = [] diff --git a/deny.toml b/deny.toml new file mode 100644 index 0000000..3a07201 --- /dev/null +++ b/deny.toml @@ -0,0 +1,31 @@ +[graph] +all-features = true + +[advisories] +ignore = [ + { id = "RUSTSEC-2024-0436", reason = "No maintained version available for `paste`." }, +] + +[bans] +allow-wildcard-paths = true +multiple-versions = "allow" +wildcards = "deny" + +[licenses] +allow = [ + "Apache-2.0", + "BSD-2-Clause", + "BSD-3-Clause", + "BSL-1.0", + "CC0-1.0", + "ISC", + "MIT", + "MPL-2.0", + "Unicode-3.0", + "Zlib", +] +confidence-threshold = 1.0 + +[sources] +unknown-git = "deny" +unknown-registry = "deny" diff --git a/packages/mdbook-plugin-utils/Cargo.toml b/packages/mdbook-plugin-utils/Cargo.toml index d8cca93..ee13d63 100644 --- a/packages/mdbook-plugin-utils/Cargo.toml +++ b/packages/mdbook-plugin-utils/Cargo.toml @@ -12,6 +12,5 @@ version.workspace = true [dependencies] anyhow.workspace = true log.workspace = true -mdbook.workspace = true pulldown-cmark.workspace = true test-log.workspace = true diff --git a/packages/mdbook-tabs/Cargo.toml b/packages/mdbook-tabs/Cargo.toml index e2b7531..c694ca7 100644 --- a/packages/mdbook-tabs/Cargo.toml +++ b/packages/mdbook-tabs/Cargo.toml @@ -21,5 +21,3 @@ semver.workspace = true serde.workspace = true serde-keyvalue = "0.1.0" serde_json.workspace = true -test-log.workspace = true -toml = "0.9.0" diff --git a/packages/mdbook-trunk/Cargo.toml b/packages/mdbook-trunk/Cargo.toml index 211e031..a117976 100644 --- a/packages/mdbook-trunk/Cargo.toml +++ b/packages/mdbook-trunk/Cargo.toml @@ -25,5 +25,4 @@ pulldown-cmark.workspace = true semver.workspace = true serde.workspace = true serde_json.workspace = true -test-log.workspace = true toml = "0.9.0"