mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 13:38:43 +00:00
Mark type ManifestVisitor
as pub(super)
Since mod `cretesio` is the only one need to have access to it. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
5bb5d12949
commit
e68eea35fe
3 changed files with 3 additions and 4 deletions
|
@ -11,7 +11,6 @@ use version::find_version;
|
|||
mod vfs;
|
||||
|
||||
mod visitor;
|
||||
pub use visitor::*;
|
||||
|
||||
/// Fetch a crate by name and version from github
|
||||
/// TODO: implement this
|
||||
|
|
|
@ -6,7 +6,7 @@ use crates_io_api::AsyncClient;
|
|||
use log::debug;
|
||||
use url::Url;
|
||||
|
||||
use super::{find_version, ManifestVisitor};
|
||||
use super::{find_version, visitor::ManifestVisitor};
|
||||
use crate::{helpers::*, BinstallError, Meta, TarBasedFmt};
|
||||
|
||||
/// Fetch a crate Cargo.toml by name and version from crates.io
|
||||
|
|
|
@ -12,7 +12,7 @@ use crate::{
|
|||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ManifestVisitor {
|
||||
pub(super) struct ManifestVisitor {
|
||||
cargo_toml_content: Vec<u8>,
|
||||
/// manifest_dir_path is treated as the current dir.
|
||||
manifest_dir_path: PathBuf,
|
||||
|
@ -31,7 +31,7 @@ impl ManifestVisitor {
|
|||
}
|
||||
|
||||
/// Load binstall metadata using the extracted information stored in memory.
|
||||
pub fn load_manifest(&self) -> Result<Manifest<Meta>, BinstallError> {
|
||||
pub(super) fn load_manifest(&self) -> Result<Manifest<Meta>, BinstallError> {
|
||||
debug!("Loading manifest directly from extracted file");
|
||||
|
||||
// Load and parse manifest
|
||||
|
|
Loading…
Add table
Reference in a new issue