Skip to content

Commit 04bafa3

Browse files
committed
Expose artifact dependency getters in cargo-as-a-library
1 parent 6833aa7 commit 04bafa3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cargo/core/dependency.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ impl Dependency {
443443
Arc::make_mut(&mut self.inner).artifact = Some(artifact);
444444
}
445445

446-
pub(crate) fn artifact(&self) -> Option<&Artifact> {
446+
pub fn artifact(&self) -> Option<&Artifact> {
447447
self.inner.artifact.as_ref()
448448
}
449449

@@ -508,15 +508,15 @@ impl Artifact {
508508
})
509509
}
510510

511-
pub(crate) fn kinds(&self) -> &[ArtifactKind] {
511+
pub fn kinds(&self) -> &[ArtifactKind] {
512512
&self.inner
513513
}
514514

515-
pub(crate) fn is_lib(&self) -> bool {
515+
pub fn is_lib(&self) -> bool {
516516
self.is_lib
517517
}
518518

519-
pub(crate) fn target(&self) -> Option<ArtifactTarget> {
519+
pub fn target(&self) -> Option<ArtifactTarget> {
520520
self.target
521521
}
522522
}

0 commit comments

Comments
 (0)