Skip to content

Commit fa7d13e

Browse files
chore(deps): drop direct bollard dep, use atlas-local 0.7.1 factory methods (#122)
* chore(deps): drop direct bollard dep, use atlas-local 0.7.1 factory methods CLOUDP-407917 atlas-local 0.7.1 exposes Client::connect_with_defaults() and Client::connect_with_socket_defaults(), wrapping bollard internally. Use these instead of constructing Docker directly so bollard is no longer a direct dependency of this crate. * chore: regenerate LICENSE-3RD-PARTY.txt
1 parent 785aa6f commit fa7d13e

4 files changed

Lines changed: 33 additions & 116 deletions

File tree

Cargo.lock

Lines changed: 22 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

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

1212
[dependencies]
1313
anyhow = "1.0.102"
14-
atlas-local = { version = "0.6.1", default-features = false }
15-
bollard = "0.20.1"
14+
atlas-local = { version = "0.7.1" }
1615
napi = { version = "^3.9.0", features = ["async", "anyhow"] }
1716
napi-derive = "^3.5.6"
1817

LICENSE-3RD-PARTY.txt

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ THIRD PARTY LICENSES
44
This file lists the licenses of the projects used in atlas-local-js.
55

66
OVERVIEW OF LICENSES:
7-
- Apache License 2.0 (107 dependencies)
7+
- Apache License 2.0 (97 dependencies)
88
- MIT License (24 dependencies)
99
- Unicode License v3 (19 dependencies)
1010
- ISC License (1 dependencies)
@@ -229,17 +229,7 @@ OVERVIEW OF LICENSES:
229229
- windows-link 0.2.1 (https://github.com/microsoft/windows-rs)
230230
- windows-result 0.4.1 (https://github.com/microsoft/windows-rs)
231231
- windows-strings 0.5.1 (https://github.com/microsoft/windows-rs)
232-
- windows-sys 0.60.2 (https://github.com/microsoft/windows-rs)
233232
- windows-sys 0.61.2 (https://github.com/microsoft/windows-rs)
234-
- windows-targets 0.53.5 (https://github.com/microsoft/windows-rs)
235-
- windows_aarch64_gnullvm 0.53.1 (https://github.com/microsoft/windows-rs)
236-
- windows_aarch64_msvc 0.53.1 (https://github.com/microsoft/windows-rs)
237-
- windows_i686_gnu 0.53.1 (https://github.com/microsoft/windows-rs)
238-
- windows_i686_gnullvm 0.53.1 (https://github.com/microsoft/windows-rs)
239-
- windows_i686_msvc 0.53.1 (https://github.com/microsoft/windows-rs)
240-
- windows_x86_64_gnu 0.53.1 (https://github.com/microsoft/windows-rs)
241-
- windows_x86_64_gnullvm 0.53.1 (https://github.com/microsoft/windows-rs)
242-
- windows_x86_64_msvc 0.53.1 (https://github.com/microsoft/windows-rs)
243233
-----------------------------------------------------------------------------
244234

245235
Apache License
@@ -448,7 +438,7 @@ OVERVIEW OF LICENSES:
448438
-----------------------------------------------------------------------------
449439
Apache License 2.0
450440
applies to:
451-
- bollard 0.20.1 (https://github.com/fussybeaver/bollard)
441+
- bollard 0.21.0 (https://github.com/fussybeaver/bollard)
452442
- hyper-named-pipe 0.1.0 (https://github.com/fussybeaver/hyper-named-pipe)
453443
-----------------------------------------------------------------------------
454444

@@ -659,7 +649,7 @@ OVERVIEW OF LICENSES:
659649
Apache License 2.0
660650
applies to:
661651
- atlas_local 1.3.0
662-
- atlas-local 0.6.1 (https://github.com/mongodb/atlas-local-lib)
652+
- atlas-local 0.7.1 (https://github.com/mongodb/atlas-local-lib)
663653
-----------------------------------------------------------------------------
664654

665655
Apache License
@@ -2154,7 +2144,7 @@ limitations under the License.
21542144
- once_cell 1.21.3 (https://github.com/matklad/once_cell)
21552145
- percent-encoding 2.3.2 (https://github.com/servo/rust-url/)
21562146
- smallvec 1.15.1 (https://github.com/servo/rust-smallvec)
2157-
- socket2 0.6.2 (https://github.com/rust-lang/socket2)
2147+
- socket2 0.6.3 (https://github.com/rust-lang/socket2)
21582148
- stable_deref_trait 1.2.1 (https://github.com/storyyeller/stable_deref_trait)
21592149
- typed-builder-macro 0.23.2 (https://github.com/idanarye/rust-typed-builder)
21602150
- typed-builder 0.23.2 (https://github.com/idanarye/rust-typed-builder)
@@ -3408,9 +3398,9 @@ limitations under the License.
34083398
applies to:
34093399
- android_system_properties 0.1.5 (https://github.com/nical/android_system_properties)
34103400
- anyhow 1.0.102 (https://github.com/dtolnay/anyhow)
3411-
- bollard-stubs 1.52.1-rc.29.1.3
3401+
- bollard-stubs 1.53.1-rc.29.3.1
34123402
- itoa 1.0.17 (https://github.com/dtolnay/itoa)
3413-
- libc 0.2.180 (https://github.com/rust-lang/libc)
3403+
- libc 0.2.186 (https://github.com/rust-lang/libc)
34143404
- pin-project-lite 0.2.16 (https://github.com/taiki-e/pin-project-lite)
34153405
- proc-macro2 1.0.106 (https://github.com/dtolnay/proc-macro2)
34163406
- quote 1.0.44 (https://github.com/dtolnay/quote)
@@ -3783,7 +3773,7 @@ THIS SOFTWARE.
37833773
-----------------------------------------------------------------------------
37843774
MIT License
37853775
applies to:
3786-
- mio 1.1.1 (https://github.com/tokio-rs/mio)
3776+
- mio 1.2.0 (https://github.com/tokio-rs/mio)
37873777
-----------------------------------------------------------------------------
37883778

37893779
Copyright (c) 2014 Carl Lerche and other MIO contributors
@@ -4221,7 +4211,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
42214211
MIT License
42224212
applies to:
42234213
- tokio-util 0.7.18 (https://github.com/tokio-rs/tokio)
4224-
- tokio 1.49.0 (https://github.com/tokio-rs/tokio)
4214+
- tokio 1.52.3 (https://github.com/tokio-rs/tokio)
42254215
-----------------------------------------------------------------------------
42264216

42274217
MIT License

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
use anyhow::{Context, Result};
44
use atlas_local::Client as AtlasLocalClient;
5-
use bollard::Docker;
65
use napi_derive::napi;
76

87
use crate::models::list_deployments::Deployment;
@@ -18,9 +17,8 @@ pub struct Client {
1817
impl Client {
1918
#[napi(factory)]
2019
pub fn connect() -> Result<Client> {
21-
let docker = Docker::connect_with_defaults().context("connect to docker")?;
22-
23-
let atlas_local_client = AtlasLocalClient::new(docker);
20+
let atlas_local_client =
21+
AtlasLocalClient::connect_with_defaults().context("connect to docker")?;
2422

2523
Ok(Client {
2624
client: atlas_local_client,

0 commit comments

Comments
 (0)