pub struct PathDep { /* private fields */ }Expand description
A sibling path-dependency that the CI workflow should git clone
before running cargo.
This matches the pattern the existing dev-* suite uses: each
crate’s CI clones its siblings into ../<name> so path-deps
resolve cleanly under a sibling-only checkout.
§Example
use dev_ci::PathDep;
let dep = PathDep::new("dev-report", "https://github.com/jamesgober/dev-report.git");
assert_eq!(dep.name(), "dev-report");Implementations§
Source§impl PathDep
impl PathDep
Sourcepub fn new(name: impl Into<String>, repo_url: impl Into<String>) -> Self
pub fn new(name: impl Into<String>, repo_url: impl Into<String>) -> Self
Build a path-dep descriptor.
Examples found in repository?
examples/path_deps.rs (lines 15-18)
11fn main() {
12 let yaml = Generator::new()
13 .target(Target::GitHubActions)
14 .matrix_os(["ubuntu-latest", "macos-latest", "windows-latest"])
15 .with_path_dep(PathDep::new(
16 "dev-report",
17 "https://github.com/jamesgober/dev-report.git",
18 ))
19 .with_path_dep(PathDep::new(
20 "dev-tools",
21 "https://github.com/jamesgober/dev-tools.git",
22 ))
23 .with_clippy()
24 .with_fmt()
25 .with_docs()
26 .with_msrv("1.85")
27 .generate();
28
29 println!("{yaml}");
30}Trait Implementations§
impl Eq for PathDep
impl StructuralPartialEq for PathDep
Auto Trait Implementations§
impl Freeze for PathDep
impl RefUnwindSafe for PathDep
impl Send for PathDep
impl Sync for PathDep
impl Unpin for PathDep
impl UnsafeUnpin for PathDep
impl UnwindSafe for PathDep
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more