mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 13:08:42 +00:00
19 lines
400 B
Rust
19 lines
400 B
Rust
use std::path::{Path, PathBuf};
|
|
|
|
use crate::BinstallError;
|
|
|
|
mod version;
|
|
use version::find_version;
|
|
|
|
mod crates_io;
|
|
pub use crates_io::fetch_crate_cratesio;
|
|
|
|
/// Fetch a crate by name and version from github
|
|
/// TODO: implement this
|
|
pub async fn fetch_crate_gh_releases(
|
|
_name: &str,
|
|
_version: Option<&str>,
|
|
_temp_dir: &Path,
|
|
) -> Result<PathBuf, BinstallError> {
|
|
unimplemented!();
|
|
}
|