Move EncodedMetadata to rustc_metadata.
This commit is contained in:
parent
df54d3980b
commit
b244b98e7c
17 changed files with 39 additions and 32 deletions
|
@ -148,17 +148,6 @@ pub enum ExternCrateSource {
|
|||
Path,
|
||||
}
|
||||
|
||||
#[derive(Encodable, Decodable)]
|
||||
pub struct EncodedMetadata {
|
||||
pub raw_data: Vec<u8>,
|
||||
}
|
||||
|
||||
impl EncodedMetadata {
|
||||
pub fn new() -> EncodedMetadata {
|
||||
EncodedMetadata { raw_data: Vec::new() }
|
||||
}
|
||||
}
|
||||
|
||||
/// The backend's way to give the crate store access to the metadata in a library.
|
||||
/// Note that it returns the raw metadata bytes stored in the library file, whether
|
||||
/// it is compressed, uncompressed, some weird mix, etc.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue