Skip to content

Commit 2a8a5c4

Browse files
chore(deps.atlas-local): use crates.io version of atlas-local (#61)
1 parent 0bd6ecf commit 2a8a5c4

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
1111

1212
[dependencies]
1313
anyhow = "1.0.99"
14-
atlas-local = { git = "https://github.com/mongodb/atlas-local-lib.git", rev = "493fb78eb2f38228d486c8537274ab752f1eac04" }
14+
atlas-local = { version = "0.1.0", default-features = false }
1515
bollard = "0.19.4"
1616
napi = { version = "^3.5.2", features = ["async", "anyhow"] }
1717
napi-derive = "^3.3.3"

LICENSE-3RD-PARTY.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,8 +863,8 @@ OVERVIEW OF LICENSES:
863863
-----------------------------------------------------------------------------
864864
Apache License 2.0
865865
applies to:
866-
- atlas-local 0.1.0
867866
- atlas_local 1.1.0
867+
- atlas-local 0.1.0 (https://github.com/mongodb/atlas-local-lib)
868868
-----------------------------------------------------------------------------
869869

870870
Apache License

src/models/list_deployments.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl From<atlas_local::models::MongoDBPortBinding> for MongoDBPortBinding {
144144
ip: "0.0.0.0".to_string(),
145145
port: source.port,
146146
},
147-
SourceType::Specific(ip) => MongoDBPortBinding {
147+
SourceType::Specific { ip } => MongoDBPortBinding {
148148
binding_type: BindingType::Specific,
149149
ip: ip.to_string(),
150150
port: source.port,
@@ -165,9 +165,9 @@ impl From<MongoDBPortBinding> for atlas_local::models::MongoDBPortBinding {
165165
port: source.port,
166166
},
167167
BindingType::Specific => atlas_local::models::MongoDBPortBinding {
168-
binding_type: atlas_local::models::BindingType::Specific(
169-
source.ip.parse::<IpAddr>().expect("Parse IP address"),
170-
),
168+
binding_type: atlas_local::models::BindingType::Specific {
169+
ip: source.ip.parse::<IpAddr>().expect("Parse IP address"),
170+
},
171171
port: source.port,
172172
},
173173
}
@@ -337,7 +337,9 @@ mod tests {
337337
#[test]
338338
fn test_mongodb_port_binding_from_lib_mongodb_port_binding_specific() {
339339
let lib_mongodb_port_binding = atlas_local::models::MongoDBPortBinding {
340-
binding_type: atlas_local::models::BindingType::Specific("192.0.2.0".parse().unwrap()),
340+
binding_type: atlas_local::models::BindingType::Specific {
341+
ip: "192.0.2.0".parse().unwrap(),
342+
},
341343
port: Some(27017),
342344
};
343345
let mongodb_port_binding: MongoDBPortBinding = lib_mongodb_port_binding.into();
@@ -388,7 +390,9 @@ mod tests {
388390
mongodb_port_binding.into();
389391
assert_eq!(
390392
lib_mongodb_port_binding.binding_type,
391-
atlas_local::models::BindingType::Specific("192.0.2.0".parse().unwrap())
393+
atlas_local::models::BindingType::Specific {
394+
ip: "192.0.2.0".parse().unwrap()
395+
}
392396
);
393397
assert_eq!(lib_mongodb_port_binding.port, Some(27017));
394398
}

0 commit comments

Comments
 (0)