diff --git a/v0.5/Cargo.lock b/v0.5/Cargo.lock index 54f842318..ae1f99552 100644 --- a/v0.5/Cargo.lock +++ b/v0.5/Cargo.lock @@ -18,6 +18,7 @@ name = "fastn-core" version = "0.1.0" dependencies = [ "fastn-lang", + "serde_json", ] [[package]] diff --git a/v0.5/Cargo.toml b/v0.5/Cargo.toml index 8250167cc..fe942f0ce 100644 --- a/v0.5/Cargo.toml +++ b/v0.5/Cargo.toml @@ -5,6 +5,7 @@ members = [ "fastn-lang", "fastn-section", "fastn-static", + "fastn-update", ] exclude = [] resolver = "2" @@ -40,6 +41,7 @@ fastn-lang = { path = "fastn-lang" } fastn-section = { path = "fastn-section" } fastn-static = { path = "fastn-static" } fastn-core = { path = "fastn-core" } +fastn-update = { path = "fastn-update" } serde = { version = "1", features = ["derive"] } serde_json = "1" itertools = "0.13" diff --git a/v0.5/fastn-core/Cargo.toml b/v0.5/fastn-core/Cargo.toml index 442a57e07..0a39586a8 100644 --- a/v0.5/fastn-core/Cargo.toml +++ b/v0.5/fastn-core/Cargo.toml @@ -9,4 +9,5 @@ repository.workspace = true homepage.workspace = true [dependencies] -fastn-lang.workspace = true \ No newline at end of file +fastn-lang.workspace = true +serde_json.workspace = true \ No newline at end of file diff --git a/v0.5/fastn-core/src/lib.rs b/v0.5/fastn-core/src/lib.rs index 99a325677..2d70e3397 100644 --- a/v0.5/fastn-core/src/lib.rs +++ b/v0.5/fastn-core/src/lib.rs @@ -1,3 +1,9 @@ +#![allow(clippy::derive_partial_eq_without_eq, clippy::get_first)] +#![deny(unused_crate_dependencies)] +#![warn(clippy::used_underscore_binding)] + +extern crate self as fastn_core; + mod config; mod route; diff --git a/v0.5/fastn-core/src/route.rs b/v0.5/fastn-core/src/route.rs index 69dac2282..95f1f6940 100644 --- a/v0.5/fastn-core/src/route.rs +++ b/v0.5/fastn-core/src/route.rs @@ -9,7 +9,7 @@ pub enum Route { Static(String), } -pub fn route(config: &fastn_config::Config, path: &str, data: serde_json::Value) -> Route { +pub fn route(_config: &fastn_core::Config, _path: &str, _data: serde_json::Value) -> Route { // parse the fastn_ftd_source, and extract todo!() } diff --git a/v0.5/fastn-static/src/lib.rs b/v0.5/fastn-static/src/lib.rs index 86fcff668..fd41f30bb 100644 --- a/v0.5/fastn-static/src/lib.rs +++ b/v0.5/fastn-static/src/lib.rs @@ -1 +1,7 @@ +#![allow(clippy::derive_partial_eq_without_eq, clippy::get_first)] +#![deny(unused_crate_dependencies)] +#![warn(clippy::used_underscore_binding)] + +extern crate self as fastn_static; + mod ds; diff --git a/v0.5/fastn-update/src/lib.rs b/v0.5/fastn-update/src/lib.rs index b93cf3ffd..fd4c9b958 100644 --- a/v0.5/fastn-update/src/lib.rs +++ b/v0.5/fastn-update/src/lib.rs @@ -1,14 +1,5 @@ -pub fn add(left: u64, right: u64) -> u64 { - left + right -} +#![allow(clippy::derive_partial_eq_without_eq, clippy::get_first)] +#![deny(unused_crate_dependencies)] +#![warn(clippy::used_underscore_binding)] -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn it_works() { - let result = add(2, 2); - assert_eq!(result, 4); - } -} +extern crate self as fastn_update; diff --git a/v0.5/fastn/src/lib.rs b/v0.5/fastn/src/lib.rs index 9fb55505a..3aed3bb4b 100644 --- a/v0.5/fastn/src/lib.rs +++ b/v0.5/fastn/src/lib.rs @@ -1,3 +1,9 @@ +#![allow(clippy::derive_partial_eq_without_eq, clippy::get_first)] +#![deny(unused_crate_dependencies)] +#![warn(clippy::used_underscore_binding)] + +extern crate self as fastn; + pub enum Action { Read, Write,