ceres: a small planet in a giant solar system
32
fork

Configure Feed

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

moved back to crates.io releases of jacqaurd

+35 -19
+20 -3
Cargo.lock
··· 1886 1886 [[package]] 1887 1887 name = "jacquard" 1888 1888 version = "0.11.0" 1889 + source = "registry+https://github.com/rust-lang/crates.io-index" 1890 + checksum = "1e4bb22329646c06eb07eb63ae6d33320e8f52ae8b5a5444257f27c3d68d44ae" 1889 1891 dependencies = [ 1890 1892 "bytes", 1891 1893 "getrandom 0.2.17", ··· 1913 1915 1914 1916 [[package]] 1915 1917 name = "jacquard-api" 1916 - version = "0.11.0" 1918 + version = "0.11.1" 1919 + source = "registry+https://github.com/rust-lang/crates.io-index" 1920 + checksum = "f4bba022e9c632f737de481d7c894b5736dd1a503362876ca4da49b9255a7e61" 1917 1921 dependencies = [ 1918 1922 "jacquard-common", 1919 1923 "jacquard-derive", ··· 1926 1930 [[package]] 1927 1931 name = "jacquard-axum" 1928 1932 version = "0.11.0" 1933 + source = "registry+https://github.com/rust-lang/crates.io-index" 1934 + checksum = "707649f378c7aaac47a267e1eb95dbcf595fca3b0c949e0e7aa742dec7093cde" 1929 1935 dependencies = [ 1930 1936 "axum", 1931 1937 "bytes", ··· 1938 1944 "serde", 1939 1945 "serde_html_form", 1940 1946 "serde_json", 1941 - "smol_str", 1942 1947 "thiserror 2.0.18", 1943 1948 "tokio", 1944 1949 "tower-http", ··· 1948 1953 [[package]] 1949 1954 name = "jacquard-common" 1950 1955 version = "0.11.0" 1956 + source = "registry+https://github.com/rust-lang/crates.io-index" 1957 + checksum = "9631f08f1e65d19e204bc6774d00b4e0b69fb649d7d7ac59ccf97797bd9a196e" 1951 1958 dependencies = [ 1952 1959 "base64 0.22.1", 1953 1960 "bon", ··· 1999 2006 [[package]] 2000 2007 name = "jacquard-derive" 2001 2008 version = "0.11.0" 2009 + source = "registry+https://github.com/rust-lang/crates.io-index" 2010 + checksum = "22904bd0f9a959591e14ee9e1dab91a9110209cb8b292930e584134f96a83ece" 2002 2011 dependencies = [ 2003 2012 "heck 0.5.0", 2004 2013 "jacquard-lexicon", ··· 2010 2019 [[package]] 2011 2020 name = "jacquard-identity" 2012 2021 version = "0.11.0" 2022 + source = "registry+https://github.com/rust-lang/crates.io-index" 2023 + checksum = "b84a9302ea9dd39c49d748a8eba21faf365570088571ff327ebb00117dbd65b8" 2013 2024 dependencies = [ 2014 2025 "bon", 2015 2026 "bytes", ··· 2031 2042 2032 2043 [[package]] 2033 2044 name = "jacquard-lexicon" 2034 - version = "0.11.0" 2045 + version = "0.11.1" 2046 + source = "registry+https://github.com/rust-lang/crates.io-index" 2047 + checksum = "fd7863d4f56a49f07391b5f775e82be12e6381156642ee83574f481ca73e8b0e" 2035 2048 dependencies = [ 2036 2049 "cid", 2037 2050 "dashmap", ··· 2058 2071 [[package]] 2059 2072 name = "jacquard-oauth" 2060 2073 version = "0.11.0" 2074 + source = "registry+https://github.com/rust-lang/crates.io-index" 2075 + checksum = "ca0b3a8b765b3d3f1890233f9f62dda1b1524d1dc9967c310e5b009b93443776" 2061 2076 dependencies = [ 2062 2077 "base64 0.22.1", 2063 2078 "bytes", ··· 2438 2453 [[package]] 2439 2454 name = "mini-moka-wasm" 2440 2455 version = "0.10.99" 2456 + source = "registry+https://github.com/rust-lang/crates.io-index" 2457 + checksum = "0102b9a2ad50fa47ca89eead2316c8222285ecfbd3f69ce99564fbe4253866e8" 2441 2458 dependencies = [ 2442 2459 "crossbeam-channel", 2443 2460 "crossbeam-utils",
+12 -11
Cargo.toml
··· 10 10 env_logger = "0.11.10" 11 11 fjall = "3.1.4" 12 12 futures = "0.3" 13 - # jacquard = "0.11.0" 14 - jacquard = { path = "../jacquard/crates/jacquard" } 15 - # jacquard-api = { version = "0.11.1", features = ["default", "app_bsky"] } 16 - jacquard-api = { path = "../jacquard/crates/jacquard-api", features = ["default", "app_bsky", "streaming"] } 17 - # jacquard-axum = "0.11.0" 18 - jacquard-axum = { path = "../jacquard/crates/jacquard-axum" } 19 - # jacquard-common = "0.11.0" 20 - jacquard-common = { path = "../jacquard/crates/jacquard-common", features = ["websocket", "streaming", "reqwest-client"] } 21 - jacquard-derive = { path = "../jacquard/crates/jacquard-derive" } 22 - # jacquard-identity = { version = "0.11.0", features = ["cache", "dns"] } 23 - jacquard-identity = { path = "../jacquard/crates/jacquard-identity", features = ["cache", "dns"] } 13 + jacquard = "0.11.0" 14 + # jacquard = { path = "../jacquard/crates/jacquard" } 15 + jacquard-api = { version = "0.11.1", features = ["default", "app_bsky", "streaming"] } 16 + # jacquard-api = { path = "../jacquard/crates/jacquard-api", features = ["default", "app_bsky", "streaming"] } 17 + jacquard-axum = "0.11.0" 18 + # jacquard-axum = { path = "../jacquard/crates/jacquard-axum" } 19 + jacquard-common = { version = "0.11.0", features = ["websocket", "streaming", "reqwest-client"] } 20 + # jacquard-common = { path = "../jacquard/crates/jacquard-common", features = ["websocket", "streaming", "reqwest-client"] } 21 + jacquard-derive = "0.11.0" 22 + # jacquard-derive = { path = "../jacquard/crates/jacquard-derive" } 23 + jacquard-identity = { version = "0.11.0", features = ["cache", "dns"] } 24 + # jacquard-identity = { path = "../jacquard/crates/jacquard-identity", features = ["cache", "dns"] } 24 25 log = "0.4.29" 25 26 postcard = { version = "1", features = ["alloc"] } 26 27 reqwest = { version = "0.12.23", features = ["stream", "json"] }
+3 -1
src/main.rs
··· 67 67 let app_view_domain = env::var("APP_VIEW_DOMAIN").expect("APP_VIEW_DOMAIN is not set"); 68 68 let service_did = Did::new_owned(format!("did:web:{app_view_domain}")) 69 69 .expect("APP_VIEW_DOMAIN produced an invalid did:web"); 70 - let service_auth = ServiceAuthConfig::new(service_did, &["bsky_appview"], resolver.clone()); 70 + // Will need this after the new proposal 71 + // let service_auth = ServiceAuthConfig::new(service_did, &["bsky_appview"], resolver.clone()); 72 + let service_auth = ServiceAuthConfig::new(service_did, resolver.clone()); 71 73 72 74 let data_dir = env::var("CERES_DATA_DIRECTORY").unwrap_or_else(|_| ".ceres_data".to_string()); 73 75 let db = storage::open(Path::new(&data_dir))?;
-4
src/state.rs
··· 34 34 fn require_lxm(&self) -> bool { 35 35 ServiceAuth::require_lxm(&self.service_auth) 36 36 } 37 - 38 - fn allowed_services(&self) -> &[jacquard::deps::smol_str::SmolStr] { 39 - ServiceAuth::allowed_services(&self.service_auth) 40 - } 41 37 }