Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Nov 3, 2024
1 parent f8734e7 commit 832d886
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 15 deletions.
1 change: 1 addition & 0 deletions v0.5/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions v0.5/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"fastn-lang",
"fastn-section",
"fastn-static",
"fastn-update",
]
exclude = []
resolver = "2"
Expand Down Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion v0.5/fastn-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ repository.workspace = true
homepage.workspace = true

[dependencies]
fastn-lang.workspace = true
fastn-lang.workspace = true
serde_json.workspace = true
6 changes: 6 additions & 0 deletions v0.5/fastn-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion v0.5/fastn-core/src/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!()
}
6 changes: 6 additions & 0 deletions v0.5/fastn-static/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
17 changes: 4 additions & 13 deletions v0.5/fastn-update/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
6 changes: 6 additions & 0 deletions v0.5/fastn/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 832d886

Please sign in to comment.