1
Fork 0

Move EncodedMetadata to rustc_metadata.

This commit is contained in:
Camille GILLOT 2021-09-24 18:15:36 +02:00
parent df54d3980b
commit b244b98e7c
17 changed files with 39 additions and 32 deletions

View file

@ -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.