Skip to content

Commit

Permalink
rm unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
seakayone committed Sep 3, 2024
1 parent 40fb15d commit 000a7c2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 165 deletions.
140 changes: 1 addition & 139 deletions Cargo.lock

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

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ clap = { version = "4.5.16", features = ["derive"] } # command-line parser
config = "0.13.1" # Layered configuration with strong support for 12-factor applications
chrono = { version = "0.4.38", features = ["serde"] }
dirs = "5.0.1" # provides platform-specific locations for storing user configuration
hcl-rs = "0.16.7" # HCL converter
http-body-util = "0.1.0"
indicatif = "0.17.0" # prograss bars and spinners
log = "0.4.22" # logging facade
Expand All @@ -28,7 +27,6 @@ pid1 = "0.1.1"
serde = { version = "1", features = ["derive"] }
serde_with = "3.9.0"
serde_json = "1" # JSON serialization
serde_yaml = "0.9"
nonempty = { version = "0.10.0", features = ["serialize"] }
valico = "4.0.0"
tokio = { version = "1", features = ["rt", "macros", "rt-multi-thread"] }
Expand All @@ -48,7 +46,6 @@ tracing-subscriber = { version = "0.3", features = [
] }
tracing-test = "0.2"
url = { version = "2", features = ["serde"] }
toml = "0.8.19"

[dev-dependencies]
assert_cmd = "2.0.16"
Expand Down
23 changes: 0 additions & 23 deletions tests/draft_schema_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,6 @@ use dsp_meta::domain::model::draft_model::*;
use dsp_meta::domain::model::json_schema_validator::{validate_files, SchemaVersion};
use dsp_meta::infrastructure::load_json_file_paths;

#[test]
fn test_json_and_yaml_serialization_are_equal() {
let mut sgv_json = data_dir();
sgv_json.push("json");
sgv_json.push("sgv.json");
let contents_json = fs::read_to_string(sgv_json).expect("Read JSON");
let metadata_json = serde_json::from_str::<DraftMetadata>(&*contents_json).expect("From JSON");
let contents_yaml = serde_yaml::to_string(&metadata_json).expect("To YAML");
let metadata_yaml = serde_yaml::from_str(&*contents_yaml).expect("From YAML");
assert_eq!(metadata_json, metadata_yaml);
}

#[test]
fn test_json_and_toml_serialization_are_equal() {
let mut sgv_json = data_dir();
sgv_json.push("json");
sgv_json.push("sgv.json");
let contents_json = fs::read_to_string(sgv_json).expect("Read JSON");
let metadata_json = serde_json::from_str::<DraftMetadata>(&*contents_json).expect("From JSON");
let contents_toml = toml::to_string(&metadata_json).expect("To TOML");
let metadata_toml = toml::from_str::<DraftMetadata>(&*contents_toml).expect("From TOML");
assert_eq!(metadata_json, metadata_toml);
}

#[test]
fn test_deserialization_all_json_data() {
Expand Down

0 comments on commit 000a7c2

Please sign in to comment.