Refactor:Mv mod visitor vfs under crates_io

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-21 13:44:12 +10:00
parent b6f15f2e5e
commit 23bad39ba8
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
4 changed files with 6 additions and 6 deletions

View file

@ -2,11 +2,6 @@ use std::path::{Path, PathBuf};
use crate::BinstallError; use crate::BinstallError;
mod vfs;
mod visitor;
use visitor::ManifestVisitor;
mod version; mod version;
use version::find_version; use version::find_version;

View file

@ -6,9 +6,14 @@ use crates_io_api::AsyncClient;
use log::debug; use log::debug;
use url::Url; use url::Url;
use super::{find_version, ManifestVisitor}; use super::find_version;
use crate::{helpers::*, BinstallError, Meta, TarBasedFmt}; use crate::{helpers::*, BinstallError, Meta, TarBasedFmt};
mod vfs;
mod visitor;
use visitor::ManifestVisitor;
/// Fetch a crate Cargo.toml by name and version from crates.io /// Fetch a crate Cargo.toml by name and version from crates.io
pub async fn fetch_crate_cratesio( pub async fn fetch_crate_cratesio(
name: &str, name: &str,