Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub struct Dependency {
pub kind: Option<DependencyKind>,
#[serde(skip_serializing_if = "Option::is_none")]
pub package: Option<String>,
pub public: bool,
}

pub struct Repository {
Expand Down
1 change: 1 addition & 0 deletions src/models/dependency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ pub fn add_dependencies(
target: dep.target.clone(),
kind: dep.kind.or(Some(DependencyKind::Normal)),
package,
public: dep.public.unwrap_or(false)
},
(
version_id.eq(target_version_id),
Expand Down
1 change: 1 addition & 0 deletions src/tests/builders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ impl DependencyBuilder {
kind: None,
explicit_name_in_toml: self.explicit_name_in_toml,
registry: self.registry,
public: Some(false),
}
}
}
1 change: 1 addition & 0 deletions src/views/krate_publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ pub struct EncodableCrateDependency {
pub kind: Option<DependencyKind>,
pub explicit_name_in_toml: Option<EncodableCrateName>,
pub registry: Option<String>,
pub public: Option<bool>,
}

impl<'de> Deserialize<'de> for EncodableCrateName {
Expand Down