From 4b0df5bbe8c441045fdf4a996a1786755471079f Mon Sep 17 00:00:00 2001 From: Jeroen Vervaeke Date: Tue, 16 Dec 2025 14:37:33 +0100 Subject: [PATCH] chore(deps.atlas-local): use crates.io version of atlas-local --- Cargo.lock | 3 ++- Cargo.toml | 2 +- LICENSE-3RD-PARTY.txt | 2 +- src/models/list_deployments.rs | 16 ++++++++++------ 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c621d26..854e330 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,7 +20,8 @@ checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" [[package]] name = "atlas-local" version = "0.1.0" -source = "git+https://github.com/mongodb/atlas-local-lib.git?rev=493fb78eb2f38228d486c8537274ab752f1eac04#493fb78eb2f38228d486c8537274ab752f1eac04" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34b13239eecc5133fbbb5a9c234b22903e31f1bbb4c57df376373290831f0467" dependencies = [ "bollard", "futures-util", diff --git a/Cargo.toml b/Cargo.toml index cf88534..351ccdc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ crate-type = ["cdylib"] [dependencies] anyhow = "1.0.99" -atlas-local = { git = "https://github.com/mongodb/atlas-local-lib.git", rev = "493fb78eb2f38228d486c8537274ab752f1eac04" } +atlas-local = { version = "0.1.0", default-features = false } bollard = "0.19.4" napi = { version = "^3.5.2", features = ["async", "anyhow"] } napi-derive = "^3.3.3" diff --git a/LICENSE-3RD-PARTY.txt b/LICENSE-3RD-PARTY.txt index 79d7c53..11b958e 100644 --- a/LICENSE-3RD-PARTY.txt +++ b/LICENSE-3RD-PARTY.txt @@ -863,8 +863,8 @@ OVERVIEW OF LICENSES: ----------------------------------------------------------------------------- Apache License 2.0 applies to: - - atlas-local 0.1.0 - atlas_local 1.1.0 + - atlas-local 0.1.0 (https://github.com/mongodb/atlas-local-lib) ----------------------------------------------------------------------------- Apache License diff --git a/src/models/list_deployments.rs b/src/models/list_deployments.rs index 39f1e26..1a575f3 100644 --- a/src/models/list_deployments.rs +++ b/src/models/list_deployments.rs @@ -144,7 +144,7 @@ impl From for MongoDBPortBinding { ip: "0.0.0.0".to_string(), port: source.port, }, - SourceType::Specific(ip) => MongoDBPortBinding { + SourceType::Specific { ip } => MongoDBPortBinding { binding_type: BindingType::Specific, ip: ip.to_string(), port: source.port, @@ -165,9 +165,9 @@ impl From for atlas_local::models::MongoDBPortBinding { port: source.port, }, BindingType::Specific => atlas_local::models::MongoDBPortBinding { - binding_type: atlas_local::models::BindingType::Specific( - source.ip.parse::().expect("Parse IP address"), - ), + binding_type: atlas_local::models::BindingType::Specific { + ip: source.ip.parse::().expect("Parse IP address"), + }, port: source.port, }, } @@ -337,7 +337,9 @@ mod tests { #[test] fn test_mongodb_port_binding_from_lib_mongodb_port_binding_specific() { let lib_mongodb_port_binding = atlas_local::models::MongoDBPortBinding { - binding_type: atlas_local::models::BindingType::Specific("192.0.2.0".parse().unwrap()), + binding_type: atlas_local::models::BindingType::Specific { + ip: "192.0.2.0".parse().unwrap(), + }, port: Some(27017), }; let mongodb_port_binding: MongoDBPortBinding = lib_mongodb_port_binding.into(); @@ -388,7 +390,9 @@ mod tests { mongodb_port_binding.into(); assert_eq!( lib_mongodb_port_binding.binding_type, - atlas_local::models::BindingType::Specific("192.0.2.0".parse().unwrap()) + atlas_local::models::BindingType::Specific { + ip: "192.0.2.0".parse().unwrap() + } ); assert_eq!(lib_mongodb_port_binding.port, Some(27017)); }