diff --git a/Cargo.toml b/Cargo.toml index 6432d229..a98e29b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [workspace] members = [ "data-error", + "data-json", "data-pdf", "data-resource", "fs-atomic-versions", @@ -10,6 +11,7 @@ members = [ default-members = [ "data-error", + "data-json", "data-pdf", "data-resource", "fs-atomic-versions", diff --git a/data-json/Cargo.toml b/data-json/Cargo.toml new file mode 100644 index 00000000..b56702df --- /dev/null +++ b/data-json/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "data-json" +version = "0.1.0" +edition = "2021" + + +[dependencies] +serde_json = "1.0.82" + +[dev-dependencies] +rstest = "0.18" diff --git a/fs-utils/src/json.rs b/data-json/src/lib.rs similarity index 100% rename from fs-utils/src/json.rs rename to data-json/src/lib.rs diff --git a/fs-utils/Cargo.toml b/fs-utils/Cargo.toml index aa68a73f..314988ab 100644 --- a/fs-utils/Cargo.toml +++ b/fs-utils/Cargo.toml @@ -6,13 +6,4 @@ edition = "2021" [dependencies] data-error = { path = "../data-error" } - -thiserror = "1" -reqwest = "0.11.11" -serde_json = "1.0.82" -anyhow = "1" -url = { version = "2.2.2", features = ["serde"] } - -[dev-dependencies] -rstest = "0.18" -tempdir = "0.3" +data-json = { path = "../data-json" } diff --git a/fs-utils/src/lib.rs b/fs-utils/src/lib.rs index 420fc254..4c139ba7 100644 --- a/fs-utils/src/lib.rs +++ b/fs-utils/src/lib.rs @@ -1,2 +1,2 @@ pub use data_error as errors; -pub mod json; +pub use data_json as json;