Skip to content

Commit

Permalink
Merge pull request #238 from weihanglo/opaque-repr
Browse files Browse the repository at this point in the history
doc: state inner repr of `Source` is opaque
  • Loading branch information
oli-obk authored Jun 27, 2023
2 parents 010cd78 + 718f8ea commit 56fcbaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ mod errors;
mod messages;

/// An "opaque" identifier for a package.
///
/// It is possible to inspect the `repr` field, if the need arises, but its
/// precise format is an implementation detail and is subject to change.
///
Expand Down Expand Up @@ -405,6 +406,9 @@ impl Package {
}

/// The source of a package such as crates.io.
///
/// It is possible to inspect the `repr` field, if the need arises, but its
/// precise format is an implementation detail and is subject to change.
#[derive(Clone, Serialize, Deserialize, Debug, PartialEq, Eq)]
#[serde(transparent)]
pub struct Source {
Expand Down

0 comments on commit 56fcbaa

Please sign in to comment.