From 1b6443be4f1daf68a31ec8a3cba088199d9ac92c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 31 Aug 2023 15:38:40 -0400 Subject: [PATCH 1/2] lib: Re-export cap-primitives For the same reason we re-export `cap-std`; in practice it needs to be version locked. (I know the idea of `cap-primitives` is that it's an implementation detail, but in practice cap-std also re-exports at least `ipnet` from it, so...it kind of has to be equally stable) --- Cargo.toml | 1 + src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index d88508d..95aa156 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,7 @@ version = "3.0.0" [dependencies] cap-tempfile = "2" +cap-primitives = "2" [target.'cfg(not(windows))'.dependencies] rustix = { version = "0.38", features = ["fs", "procfs", "process", "pipe"] } diff --git a/src/lib.rs b/src/lib.rs index 0f33892..405c2c4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,6 +7,7 @@ #![cfg_attr(feature = "dox", feature(doc_cfg))] // Re-export our dependencies +pub use cap_primitives; pub use cap_tempfile; pub use cap_tempfile::cap_std; From 6471f017d2fe9bd6c178cd9ad9bd8e96b96d302c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 31 Aug 2023 15:38:48 -0400 Subject: [PATCH 2/2] README.md: Add crates.io and docs.rs links They're handy. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 11518e1..c6189ef 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # Extension APIs for cap-std This crate adds additional helper APIs on top of the [`cap-std crate`]. +[![crates.io](https://img.shields.io/crates/v/cap-std-ext.svg)](https://crates.io/crates/cap-std-ext) + +[Documentation (Releases)](https://docs.rs/cap-std-ext/) + This crate will aim to migrate extension APIs from [openat-ext](https://docs.rs/openat-ext/latest/openat_ext/index.html).