Skip to content

Commit c6748ba

Browse files
cgwalterssunfishcode
authored andcommitted
tempfile: Re-export cap-std
In many of the projects I work on we use Github dependabot, configured to open a separate PR for each bump. But right now dependabot does not understand the cargo/rust level dependencies involved in e.g. https://github.com/coreos/cap-std-ext/blob/main/Cargo.toml#L12-L14 I think it's general best practice to re-export dependencies used in public API, so that consumers can keep their direct set smaller, and this way dependabot updates in this form will just work because we can just depend on `cap-tempfile`.
1 parent 2c8a31c commit c6748ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cap-tempfile/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ pub mod utf8;
2121
mod tempfile;
2222
pub use tempfile::*;
2323

24+
/// Re-export because we use this in our public API.
25+
pub use cap_std;
26+
2427
#[doc(hidden)]
2528
pub use cap_std::ambient_authority_known_at_compile_time;
2629
pub use cap_std::{ambient_authority, AmbientAuthority};

0 commit comments

Comments
 (0)