Skip to content

Commit

Permalink
feat: expose HasPrefixEntry for public use (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinou01 authored Jul 19, 2024
1 parent 31e16aa commit f0d5d00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/rattler_conda_types/src/package/has_prefix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ use std::{
sync::OnceLock,
};

/// Representation of an entry in `info/has_prefix`.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct HasPrefixEntry {
/// The prefix placeholder in the file
pub prefix: Cow<'static, str>,
/// The file's mode
pub file_mode: FileMode,
/// The file's relative path respective to the environment's prefix
pub relative_path: PathBuf,
}

Expand Down
1 change: 1 addition & 0 deletions crates/rattler_conda_types/src/package/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub use {
entry_point::EntryPoint,
files::Files,
has_prefix::HasPrefix,
has_prefix::HasPrefixEntry,
index::IndexJson,
link::{LinkJson, NoArchLinks, PythonEntryPoints},
no_link::NoLink,
Expand Down

0 comments on commit f0d5d00

Please sign in to comment.