Add library fixture meta

Additionally documents the syntax for fixture meta.
This commit is contained in:
Ryo Yoshida 2023-06-28 22:34:14 +09:00
parent 8769cd24bc
commit d51536c242
No known key found for this signature in database
GPG key ID: E25698A930586171
5 changed files with 164 additions and 77 deletions

View file

@ -138,12 +138,12 @@ impl ops::Deref for CrateName {
}
}
/// Origin of the crates. It is used in emitting monikers.
/// Origin of the crates.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum CrateOrigin {
/// Crates that are from the rustc workspace
/// Crates that are from the rustc workspace.
Rustc { name: String },
/// Crates that are workspace members,
/// Crates that are workspace members.
Local { repo: Option<String>, name: Option<String> },
/// Crates that are non member libraries.
Library { repo: Option<String>, name: String },