~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The dependencies are checked by cargo-deny, and no crate has unsafe code

Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:check/deny
.knotless/workflows/check.yml+14−5
@@ -1,9 +1,9 @@
# Formatting and lints, as `just lint` checks the Rust, on every pull and
# push to main; test.yml runs the tests.
# Formatting, lints and the dependencies, as `just lint` checks the Rust, on
# every pull and push to main; test.yml runs the tests.
#
# The image is the Rust `just lint` runs locally, so a newer release's new
# lints land on purpose. The build and the toolchain's components are kept
# between runs, so a push lints only what it changed.
# lints land on purpose. The build, the toolchain's components and
# cargo-deny are kept between runs, so a push lints only what it changed.
image: rust:1.98
# The shared runner host; ci.knotless.dev, also this repository's, runs only deploy.yml.
runners: [runner.knotless.dev]
@@ -13,7 +13,16 @@ queue: first
on:
push: {refs: [refs/heads/main]}
pull: {base: [refs/heads/main, refs/heads/feature/*]}
cache: [target, /usr/local/cargo/registry, /usr/local/rustup]
cache: [target, /usr/local/cargo/registry, /usr/local/rustup, /opt/cargo-deny]
steps:
# cargo fmt --check, then clippy over the workspace, warnings denied.
- uses: chadtmiller.com/steps/rust-lint@1
# The dependencies' advisories, licences, bans and sources (deny.toml).
# The advisories are RustSec's as they are at the run, so a new one can
# fail a push that changed nothing.
- name: deny
run: |
v=0.22.0
/opt/cargo-deny/bin/cargo-deny --version 2>/dev/null | grep -qx "cargo-deny $v" ||
cargo install --locked --force --version "$v" --root /opt/cargo-deny cargo-deny
/opt/cargo-deny/bin/cargo-deny check
crates/group-host/Cargo.toml+4−0
@@ -5,6 +5,10 @@ version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
publish.workspace = true
[lints]
workspace = true
[dependencies]
atproto.workspace = true
crates/group-host-mcp/Cargo.toml+4−0
@@ -5,6 +5,10 @@ version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
publish.workspace = true
[lints]
workspace = true
[dependencies]
serde_json.workspace = true
crates/opensocial/Cargo.toml+4−0
@@ -5,6 +5,10 @@ version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
publish.workspace = true
[lints]
workspace = true
[dependencies]
anyhow.workspace = true
docs/development.md+19−5
@@ -222,11 +222,25 @@ docs-deploy` after a change to the docs lands.
`just lint` runs what `check` and `web` do, except the console's build.
That's `cargo fmt --check`, `oxfmt --check`, clippy with warnings
denied, the console's component layers (`harness/layers.mjs`), a check
that no dialog's title holds a name or anything typed
(`harness/dialogs.mjs`), a check that no component writes words into
its markup rather than saying a message (`harness/strings.mjs`), and
svelte-check.
denied, `cargo deny check`, the console's component layers
(`harness/layers.mjs`), a check that no dialog's title holds a name or
anything typed (`harness/dialogs.mjs`), a check that no component writes
words into its markup rather than saying a message
(`harness/strings.mjs`), and svelte-check.
`cargo deny check` holds the dependencies to `deny.toml`: no advisory of
the RustSec database, unmaintained and unsound crates and yanked
versions too; a permissive licence for every one; and crates from
crates.io and the atproto registry alone. An advisory is fixed by an
upgrade, never ignored. The advisories are read as they are at the run,
so `check` can fail on `main` the day one is published, with nothing
changed. It needs `cargo install --locked cargo-deny` once; CI runs
0.22.0.
No crate has unsafe code: `[workspace.lints.rust]` in `Cargo.toml`
forbids it, and each crate takes the workspace's lints, so the build
refuses unsafe code in every target, tests too. A new crate takes them
with `[lints] workspace = true`.
`just fmt` formats everything the checks hold to a format. It formats
the Rust with rustfmt, and the console, the harness and the docs site
AGENTS.md+5−1
@@ -203,7 +203,11 @@ by `just shots` from the line above each.
The workflows in `.knotless/workflows/` run on pushes to `main` and on
pulls into it or into a `feature/` branch:
- `check`: `cargo fmt --check` and clippy, warnings denied.
- `check`: `cargo fmt --check`, clippy with warnings denied, and
`cargo deny check` (`deny.toml`): no RustSec advisory, unmaintained,
unsound or yanked crate, permissive licences only, and crates from
crates.io and the atproto registry alone. No crate has unsafe code:
`Cargo.toml` forbids it in every target, and the build refuses any.
- `test`: every test, under the 100% gate of lines and functions.
- `web`: oxfmt's format, the component layers, dialogs' titles, words
as messages, svelte-check (failing on any warning), and the build.
Cargo.lock+228−95
@@ -49,23 +49,28 @@ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
[[package]]
name = "atproto"
version = "0.2.2"
version = "0.3.0"
source = "sparse+https://knotless.dev/cargo/did:plc:bcgltzqazw5tb6k2g3ttenbj/3mzr5vldibtui/"
checksum = "8795ce2e4481daea735af125c1304ff5d180ecefd4318790ea8bbf13d50e47c8"
checksum = "13ce204ed0ba7aaf46dc4f54ea6553252cb856d28eced00bed82b5de8f2824af"
dependencies = [
"base64 0.22.1",
"blake3",
"bs58",
"ecdsa",
"hmac",
"hmac 0.12.1",
"k256",
"p256",
"rand_core 0.6.4",
"serde_json",
"sha2",
"sha2 0.10.9",
"unicode-segmentation",
]
[[package]]
name = "autocfg"
version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
[[package]]
name = "axum"
version = "0.8.9"
@@ -123,9 +128,9 @@ dependencies = [
[[package]]
name = "base16ct"
version = "0.2.0"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf"
checksum = "fd307490d624467aa6f74b0eabb77633d1f758a7b25f12bceb0b22e08d9726f6"
[[package]]
name = "base64"
@@ -173,6 +178,15 @@ dependencies = [
"generic-array",
]
[[package]]
name = "block-buffer"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"
dependencies = [
"hybrid-array",
]
[[package]]
name = "bs58"
version = "0.5.1"
@@ -227,6 +241,12 @@ dependencies = [
"rand_core 0.10.1",
]
[[package]]
name = "cmov"
version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
[[package]]
name = "compression-codecs"
version = "0.4.47"
@@ -246,9 +266,9 @@ checksum = "2ebdda89edc534bf8d5dd2857562633b6495557e5846552ade994b99ed13c36a"
[[package]]
name = "const-oid"
version = "0.9.6"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
checksum = "be95d4a884358a21a199689323c29e9256b4a1b315e22f183d155422041d3a9a"
[[package]]
name = "constant_time_eq"
@@ -256,6 +276,12 @@ version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b"
[[package]]
name = "cpubits"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "15b85f9c39137c3a891689859392b1bd49812121d0d61c9caf00d46ed5ce06ae"
[[package]]
name = "cpufeatures"
version = "0.2.17"
@@ -285,12 +311,16 @@ dependencies = [
[[package]]
name = "crypto-bigint"
version = "0.5.5"
version = "0.7.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76"
checksum = "914c195c4d7fbc5ed7f88d14cbf85914d5c664967658d43404b263913a477e82"
dependencies = [
"generic-array",
"rand_core 0.6.4",
"cpubits",
"ctutils",
"getrandom 0.4.3",
"hybrid-array",
"num-traits",
"rand_core 0.10.1",
"subtle",
"zeroize",
]
@@ -305,6 +335,27 @@ dependencies = [
"typenum",
]
[[package]]
name = "crypto-common"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"
dependencies = [
"getrandom 0.4.3",
"hybrid-array",
"rand_core 0.10.1",
]
[[package]]
name = "ctutils"
version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "261af4dc7a06ea8a527a8717d8cbba3417530d6ea14e1edb3de6b67806be474f"
dependencies = [
"cmov",
"subtle",
]
[[package]]
name = "data-encoding"
version = "2.11.1"
@@ -313,9 +364,9 @@ checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06"
[[package]]
name = "der"
version = "0.7.10"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
checksum = "6a996a108feb8b427a6e12fcf6af4aa83409b79d72c15337d7741368131ee004"
dependencies = [
"const-oid",
"pem-rfc7468",
@@ -328,12 +379,23 @@ version = "0.10.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
dependencies = [
"block-buffer",
"const-oid",
"crypto-common",
"block-buffer 0.10.4",
"crypto-common 0.1.6",
"subtle",
]
[[package]]
name = "digest"
version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"
dependencies = [
"block-buffer 0.12.1",
"const-oid",
"crypto-common 0.2.2",
"ctutils",
]
[[package]]
name = "displaydoc"
version = "0.2.7"
@@ -347,34 +409,36 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.16.9"
version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca"
checksum = "c0681a4fc24c767085329728d8dfba959af91228aa4610cca4f8ce317ba46ae0"
dependencies = [
"der",
"digest",
"digest 0.11.3",
"elliptic-curve",
"rfc6979",
"signature",
"spki",
"zeroize",
]
[[package]]
name = "elliptic-curve"
version = "0.13.8"
version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47"
checksum = "900f37e7e18d74a2347389af6cd69e3a30d5cc9e697f40004865679aa75e9c7c"
dependencies = [
"base16ct",
"crypto-bigint",
"digest",
"crypto-common 0.2.2",
"digest 0.11.3",
"ff",
"generic-array",
"group",
"hkdf",
"hybrid-array",
"pem-rfc7468",
"pkcs8",
"rand_core 0.6.4",
"rand_core 0.10.1",
"sec1",
"subtle",
"zeroize",
@@ -416,11 +480,11 @@ checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
[[package]]
name = "ff"
version = "0.13.1"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393"
checksum = "a1f686ab92a9fb0eaf188f6c6c87b89490baa6fdb0db4544ba4dc47f7942489f"
dependencies = [
"rand_core 0.6.4",
"rand_core 0.10.1",
"subtle",
]
@@ -455,9 +519,9 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
[[package]]
name = "form_urlencoded"
version = "1.2.2"
version = "1.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e"
dependencies = [
"percent-encoding",
]
@@ -558,7 +622,6 @@ checksum = "4bb6743198531e02858aeaea5398fcc883e71851fcbcb5a2f773e2fb6cb1edf2"
dependencies = [
"typenum",
"version_check",
"zeroize",
]
[[package]]
@@ -602,12 +665,12 @@ dependencies = [
[[package]]
name = "group"
version = "0.13.0"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63"
checksum = "7fd1a1c7a5206c5b7a3f5a0d7ccd3ff85d0c8f5133d62a02680255b0004af5f4"
dependencies = [
"ff",
"rand_core 0.6.4",
"rand_core 0.10.1",
"subtle",
]
@@ -620,13 +683,13 @@ dependencies = [
"axum",
"futures",
"group-host-mcp",
"hmac",
"hmac 0.12.1",
"rand_core 0.6.4",
"reqwest",
"rusqlite",
"serde",
"serde_json",
"sha2",
"sha2 0.10.9",
"tempfile",
"tokio",
"tokio-tungstenite",
@@ -662,15 +725,6 @@ dependencies = [
"tracing",
]
[[package]]
name = "hashbrown"
version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
dependencies = [
"foldhash",
]
[[package]]
name = "hashbrown"
version = "0.17.1"
@@ -686,16 +740,16 @@ version = "0.12.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a596f1b20ed2cc5ecac41a164aaebc7258057060f06c0cf7a2ba3991ee7990fb"
dependencies = [
"hashbrown 0.17.1",
"hashbrown",
]
[[package]]
name = "hkdf"
version = "0.12.4"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7"
checksum = "4aaa26c720c68b866f2c96ef5c1264b3e6f473fe5d4ce61cd44bbe913e553018"
dependencies = [
"hmac",
"hmac 0.13.0",
]
[[package]]
@@ -704,7 +758,16 @@ version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
dependencies = [
"digest",
"digest 0.10.7",
]
[[package]]
name = "hmac"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f"
dependencies = [
"digest 0.11.3",
]
[[package]]
@@ -752,6 +815,17 @@ version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
[[package]]
name = "hybrid-array"
version = "0.4.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17"
dependencies = [
"subtle",
"typenum",
"zeroize",
]
[[package]]
name = "hyper"
version = "1.12.0"
@@ -925,7 +999,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
dependencies = [
"equivalent",
"hashbrown 0.17.1",
"hashbrown",
]
[[package]]
@@ -953,16 +1027,17 @@ dependencies = [
[[package]]
name = "k256"
version = "0.13.4"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6e3919bbaa2945715f0bb6d3934a173d1e9a59ac23767fbaaef277265a7411b"
checksum = "93f50113171a713f4a4231ef82eb26703607139b35dcb56241f0ceab2ae1f7d8"
dependencies = [
"cfg-if",
"cpubits",
"ecdsa",
"elliptic-curve",
"once_cell",
"sha2",
"primeorder",
"sha2 0.11.1",
"signature",
"wnaf",
]
[[package]]
@@ -979,9 +1054,9 @@ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
[[package]]
name = "libsqlite3-sys"
version = "0.38.2"
version = "0.40.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1d20bef17f513b9b3004532233187769cd072d790971f4e4da0e346eb6401e8"
checksum = "b06e69070b7e12262b0cd90832f0a7396f142a2b330181255562decf9f0c6215"
dependencies = [
"cc",
"pkg-config",
@@ -1060,6 +1135,15 @@ dependencies = [
"windows-sys 0.61.2",
]
[[package]]
name = "num-traits"
version = "0.2.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
dependencies = [
"autocfg",
]
[[package]]
name = "once_cell"
version = "1.21.4"
@@ -1084,21 +1168,22 @@ dependencies = [
[[package]]
name = "p256"
version = "0.13.2"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b"
checksum = "d2c9239b2dbc807adbbe147e8cf72ea7450c3a0aabe62cb8e75ff4ec22e1f72a"
dependencies = [
"ecdsa",
"elliptic-curve",
"primefield",
"primeorder",
"sha2",
"sha2 0.11.1",
]
[[package]]
name = "pem-rfc7468"
version = "0.7.0"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412"
checksum = "a6305423e0e7738146434843d1694d621cce767262b2a86910beab705e4493d9"
dependencies = [
"base64ct",
]
@@ -1117,9 +1202,9 @@ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
[[package]]
name = "pkcs8"
version = "0.10.2"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
checksum = "451913da69c775a56034ea8d9003d27ee8948e12443eae7c038ba100a4f21cb7"
dependencies = [
"der",
"spki",
@@ -1149,13 +1234,31 @@ dependencies = [
"zerocopy",
]
[[package]]
name = "primefield"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c555a6e4eb7d4e158fcb028c835c3b8642206ddc279b5c6b202ef9a8bdb592f4"
dependencies = [
"crypto-bigint",
"crypto-common 0.2.2",
"ff",
"rand_core 0.10.1",
"subtle",
"zeroize",
]
[[package]]
name = "primeorder"
version = "0.13.6"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6"
checksum = "5c9f42978c78a00e3d68f69fc03e57a234debae69da4020a4fb588fcdcd07b06"
dependencies = [
"elliptic-curve",
"once_cell",
"primefield",
"serdect",
"wnaf",
]
[[package]]
@@ -1366,12 +1469,12 @@ dependencies = [
[[package]]
name = "rfc6979"
version = "0.4.0"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2"
checksum = "b4a459cddafb3fe76b31fd8f1108007566c40301feb64dc7b54656eb7388172b"
dependencies = [
"hmac",
"subtle",
"crypto-bigint",
"hmac 0.13.0",
]
[[package]]
@@ -1390,19 +1493,18 @@ dependencies = [
[[package]]
name = "rsqlite-vfs"
version = "0.1.1"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c51c9ae4df8a7fba42103df5c621fa3c37eccf3a3c650879e90fc48b11cc192c"
checksum = "353b74f9810d5b085b6c42c9d86a5f0fdb795553235cdd48753b32e3809d18a7"
dependencies = [
"hashbrown 0.16.1",
"thiserror",
]
[[package]]
name = "rusqlite"
version = "0.40.2"
version = "0.43.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23f2a97da3e3873c73cb2a2e71b35c40ff95e0b1eefa8d72d8499a6928c3b5b3"
checksum = "f172c4812a19b26d1c23cdb0070e69db335503dfa378b910eb857386e5b8beba"
dependencies = [
"bitflags",
"fallible-iterator",
@@ -1481,14 +1583,14 @@ checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
[[package]]
name = "sec1"
version = "0.7.3"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc"
checksum = "d56d437c2f19203ce5f7122e507831de96f3d2d4d3be5af44a0b0a09d8a80e4d"
dependencies = [
"base16ct",
"ctutils",
"der",
"generic-array",
"pkcs8",
"hybrid-array",
"subtle",
"zeroize",
]
@@ -1559,6 +1661,16 @@ dependencies = [
"serde",
]
[[package]]
name = "serdect"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "66cf8fedced2fcf12406bcb34223dffb92eaf34908ede12fed414c82b7f00b3e"
dependencies = [
"base16ct",
"serde",
]
[[package]]
name = "sha1"
version = "0.10.7"
@@ -1567,7 +1679,7 @@ checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8"
dependencies = [
"cfg-if",
"cpufeatures 0.2.17",
"digest",
"digest 0.10.7",
]
[[package]]
@@ -1578,7 +1690,18 @@ checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
dependencies = [
"cfg-if",
"cpufeatures 0.2.17",
"digest",
"digest 0.10.7",
]
[[package]]
name = "sha2"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19"
dependencies = [
"cfg-if",
"cpufeatures 0.3.1",
"digest 0.11.3",
]
[[package]]
@@ -1608,12 +1731,12 @@ dependencies = [
[[package]]
name = "signature"
version = "2.2.0"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"
checksum = "28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5"
dependencies = [
"digest",
"rand_core 0.6.4",
"digest 0.11.3",
"rand_core 0.10.1",
]
[[package]]
@@ -1646,9 +1769,9 @@ dependencies = [
[[package]]
name = "spki"
version = "0.7.3"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
checksum = "7ef958a98b9d5da290cfc78946e9f3e61e1e62a18db0d92cac0b83cc161491a9"
dependencies = [
"base64ct",
"der",
@@ -1656,14 +1779,12 @@ dependencies = [
[[package]]
name = "sqlite-wasm-rs"
version = "0.5.5"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc3efc0da82635d7e1ced0053bbbfa8c7ab9645d0bf36ceb4f7127bb85315d75"
checksum = "a6cd504cecbfe7eef649988840f9a6cb768d11085efec138f8e99f160632d867"
dependencies = [
"cc",
"js-sys",
"rsqlite-vfs",
"wasm-bindgen",
]
[[package]]
@@ -2001,9 +2122,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]]
name = "url"
version = "2.5.8"
version = "2.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a"
dependencies = [
"form_urlencoded",
"idna",
@@ -2246,6 +2367,18 @@ version = "0.57.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
[[package]]
name = "wnaf"
version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "795ca18b3fdb5e62bf982199278341ddcf7ebf7d32e25e212ad05d496e95f6fa"
dependencies = [
"ff",
"group",
"hybrid-array",
"primefield",
]
[[package]]
name = "writeable"
version = "0.6.4"
Cargo.toml+9−11
@@ -7,26 +7,25 @@ version = "0.1.0"
edition = "2024"
license = "MIT OR Apache-2.0"
rust-version = "1.89"
# Nothing here goes to a registry; cargo-deny reads this to know the path
# dependencies between the crates are no wildcards (deny.toml).
publish = false
# No unsafe code, in any target of any crate.
[workspace.lints.rust]
unsafe_code = "forbid"
[workspace.dependencies]
atproto = { version = "0.2", registry = "atproto" }
atproto = { version = "0.3", registry = "atproto" }
group-host = { path = "crates/group-host" }
group-host-mcp = { path = "crates/group-host-mcp" }
opensocial = { path = "crates/opensocial" }
anyhow = "1"
axum = { version = "0.8", features = ["ws"] }
base64 = "0.22"
blake3 = "1"
bs58 = "0.5"
ciborium = "0.2"
ecdsa = { version = "0.16", features = ["signing", "verifying"] }
futures = "0.3"
hmac = "0.12"
k256 = { version = "0.13", features = ["ecdsa"] }
p256 = { version = "0.13", features = ["ecdsa", "ecdh"] }
rand_core = { version = "0.6", features = ["getrandom"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "http2", "gzip"] }
rusqlite = { version = "0.40", features = ["bundled"] }
rusqlite = { version = "0.43", features = ["bundled"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha2 = "0.10"
@@ -36,7 +35,6 @@ tower = { version = "0.5", features = ["util"] }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "fs", "io-util", "time", "sync", "net", "signal"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", default-features = false, features = ["std", "fmt", "json", "env-filter", "registry"] }
unicode-segmentation = "1"
# Every worktree keeps its own target/, so debug info is kept small: line
# tables for our crates, none for dependencies.
deny.tomlnew+53−0
@@ -0,0 +1,53 @@
# `cargo deny check`, in the `check` workflow: the dependencies'
# advisories, licences, bans and sources (docs/development.md, "The
# checks").
[graph]
all-features = true
[advisories]
# Every advisory of the RustSec database fails the check, unmaintained and
# unsound crates too, and a yanked version.
version = 2
yanked = "deny"
unmaintained = "all"
unsound = "all"
ignore = []
[licenses]
version = 2
# Permissive licences only, so the host can be shipped under any of them.
allow = [
"0BSD",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"BSL-1.0",
"CC0-1.0",
"CDLA-Permissive-2.0",
"ISC",
"MIT",
"MIT-0",
"Unicode-3.0",
"Unlicense",
"Zlib",
]
confidence-threshold = 0.9
[bans]
multiple-versions = "allow"
# The path dependencies between the workspace's crates have no version;
# they are let off as none of the crates is published (Cargo.toml).
wildcards = "deny"
allow-wildcard-paths = true
[sources]
unknown-registry = "deny"
unknown-git = "deny"
# crates.io, and the registry the atproto crate is published to
# (.cargo/config.toml).
allow-registry = [
"https://github.com/rust-lang/crates.io-index",
"sparse+https://knotless.dev/cargo/did:plc:bcgltzqazw5tb6k2g3ttenbj/3mzr5vldibtui/",
]
Justfile+1−0
@@ -56,6 +56,7 @@ lint:
{{cargo}} fmt --all --check
{{oxfmt}} --check {{js}}
{{cargo}} clippy --workspace --all-targets -- -D warnings
{{cargo}} deny check
node harness/layers.mjs
node harness/dialogs.mjs
node harness/strings.mjs