don't
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

style: rename crate 'mock-pds' => 'gordian-pds'

Signed-off-by: tjh <x@tjh.dev>

tjh 07aa9645 8b12b024

+36 -35
+21 -21
Cargo.lock
··· 2128 2128 "gordian-identity", 2129 2129 "gordian-jetstream", 2130 2130 "gordian-lexicon", 2131 + "gordian-pds", 2131 2132 "gordian-types", 2132 2133 "http-body-util", 2133 2134 "hyper-util", 2134 2135 "mimetype-detector", 2135 - "mock-pds", 2136 2136 "moka", 2137 2137 "multibase", 2138 2138 "rand 0.9.2", ··· 2170 2170 "serde_json", 2171 2171 "thiserror 2.0.18", 2172 2172 "time", 2173 + ] 2174 + 2175 + [[package]] 2176 + name = "gordian-pds" 2177 + version = "0.0.0" 2178 + dependencies = [ 2179 + "aws-lc-rs", 2180 + "axum", 2181 + "data-encoding", 2182 + "futures-util", 2183 + "gordian-auth", 2184 + "gordian-identity", 2185 + "gordian-types", 2186 + "multibase", 2187 + "serde", 2188 + "serde_json", 2189 + "sqlx", 2190 + "tokio", 2191 + "tracing", 2192 + "url", 2173 2193 ] 2174 2194 2175 2195 [[package]] ··· 2967 2947 "libc", 2968 2948 "wasi", 2969 2949 "windows-sys 0.61.2", 2970 - ] 2971 - 2972 - [[package]] 2973 - name = "mock-pds" 2974 - version = "0.0.0" 2975 - dependencies = [ 2976 - "aws-lc-rs", 2977 - "axum", 2978 - "data-encoding", 2979 - "futures-util", 2980 - "gordian-auth", 2981 - "gordian-identity", 2982 - "gordian-types", 2983 - "multibase", 2984 - "serde", 2985 - "serde_json", 2986 - "sqlx", 2987 - "tokio", 2988 - "tracing", 2989 - "url", 2990 2950 ] 2991 2951 2992 2952 [[package]]
+4 -3
Cargo.toml
··· 2 2 resolver = "3" 3 3 members = [ 4 4 "crates/gordian-auth", 5 - "crates/gordian-types", 6 - "crates/credential-helper", 7 5 "crates/gordian-identity", 8 6 "crates/gordian-jetstream", 9 7 "crates/gordian-knot", 10 8 "crates/gordian-lexicon", 11 - "crates/mock-pds", 9 + "crates/gordian-pds", 10 + "crates/gordian-types", 11 + "crates/credential-helper", 12 12 ] 13 13 default-members = ["crates/gordian-knot"] 14 14 ··· 26 26 gordian-identity = { path = "crates/gordian-identity" } 27 27 gordian-jetstream = { path = "crates/gordian-jetstream" } 28 28 gordian-lexicon = { path = "crates/gordian-lexicon" } 29 + gordian-pds = { path = "crates/gordian-pds" } 29 30 30 31 anyhow = "1.0.100" 31 32 axum = "0.8.4"
+1 -1
crates/gordian-knot/Cargo.toml
··· 51 51 clap_complete = "4.5.65" 52 52 53 53 [dev-dependencies] 54 + gordian-pds = { workspace = true } 54 55 http-body-util = "0.1.3" 55 - mock-pds = { path = "../mock-pds" } 56 56 multibase = "0.9.1" 57 57 58 58 [target.'cfg(not(target_env = "msvc"))'.dependencies]
+4 -3
crates/gordian-knot/src/lib.rs
··· 174 174 use super::super::public; 175 175 use super::*; 176 176 use axum::http::{HeaderValue, Method, Response, header}; 177 + use gordian_pds::Pds; 177 178 178 179 fn make_claims<F>(iss: &Did, aud: &Did, modify_claims: F) -> Claims 179 180 where ··· 199 198 } 200 199 201 200 async fn service_auth_with<F>( 202 - pds: &mock_pds::Pds, 201 + pds: &Pds, 203 202 iss: &Did, 204 203 aud: &Did, 205 204 modify_claims: F, ··· 226 225 227 226 async fn create_repo_with<F>( 228 227 knot: &Knot, 229 - pds: mock_pds::Pds, 228 + pds: Pds, 230 229 did: &Did, 231 230 rkey: &str, 232 231 repo_name: &str, ··· 280 279 281 280 async fn create_repo( 282 281 knot: &Knot, 283 - pds: mock_pds::Pds, 282 + pds: Pds, 284 283 did: &Did, 285 284 rkey: &str, 286 285 repo_name: &str,
+5 -6
crates/gordian-knot/src/mock.rs
··· 5 5 use gordian_identity::Resolver; 6 6 use gordian_types::OwnedDid; 7 7 8 - pub async fn setup( 9 - owner_did: &str, 10 - instance_name: &str, 11 - ) -> (tempfile::TempDir, mock_pds::Pds, Knot) { 8 + pub use gordian_pds::Pds; 9 + 10 + pub async fn setup(owner_did: &str, instance_name: &str) -> (tempfile::TempDir, Pds, Knot) { 12 11 let base = tempfile::tempdir().expect("temporary directory"); 13 12 let pool = sqlx::SqlitePool::connect("sqlite://:memory:") 14 13 .await ··· 15 16 16 17 sqlx::migrate!().run(&pool).await.unwrap(); 17 18 18 - let (pds, listener) = mock_pds::init().await; 19 - let pds_api = mock_pds::router(pds.clone()); 19 + let (pds, listener) = gordian_pds::init().await; 20 + let pds_api = gordian_pds::router(pds.clone()); 20 21 tokio::spawn(async move { 21 22 axum::serve(listener, pds_api).await.unwrap(); 22 23 });
+1 -1
crates/mock-pds/Cargo.toml crates/gordian-pds/Cargo.toml
··· 1 1 [package] 2 - name = "mock-pds" 2 + name = "gordian-pds" 3 3 version.workspace = true 4 4 authors.workspace = true 5 5 repository.workspace = true
crates/mock-pds/src/api.rs crates/gordian-pds/src/api.rs
crates/mock-pds/src/lib.rs crates/gordian-pds/src/lib.rs
crates/mock-pds/src/state.rs crates/gordian-pds/src/state.rs