Mark binstall_v1::{Source, SourceType} pub

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-27 19:24:01 +10:00
parent 1a8fda1f5e
commit 05c0d5fcae
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -49,7 +49,7 @@ impl MetaData {
}
#[derive(Debug, Copy, Clone, Serialize, Deserialize)]
enum SourceType {
pub enum SourceType {
Git,
Path,
Registry,
@ -57,8 +57,8 @@ enum SourceType {
#[derive(Debug, Serialize, Deserialize)]
pub struct Source {
source_type: SourceType,
url: Url,
pub source_type: SourceType,
pub url: Url,
}
impl Source {