bpm_core 0.1.0

Cross-platform software helping to verify, prove and secure package compilation, building, fetching, and deployment. Core package.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::path::PathBuf;

use url::Url;

use crate::package_managers::errors::package_manager_error::PackageManagerError;

#[async_trait::async_trait]
pub trait PackageManager {
    async fn install_from_url(&self, package_url: &Url) -> Result<PathBuf, PackageManagerError>;

    // TODO : When feature to fetch installed packages implement use Package object instead
    async fn remove(&self, package_name: &String) -> Result<(), PackageManagerError>;
}