Skip to content

Commit d9a1af2

Browse files
committed
Make the fields of semver::Version public again.
1 parent 339d400 commit d9a1af2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libsemver/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ impl fmt::Show for Identifier {
7979
#[deriving(Clone)]
8080
pub struct Version {
8181
/// The major version, to be incremented on incompatible changes.
82-
major: uint,
82+
pub major: uint,
8383
/// The minor version, to be incremented when functionality is added in a
8484
/// backwards-compatible manner.
85-
minor: uint,
85+
pub minor: uint,
8686
/// The patch version, to be incremented when backwards-compatible bug
8787
/// fixes are made.
88-
patch: uint,
88+
pub patch: uint,
8989
/// The pre-release version identifier, if one exists.
90-
pre: Vec<Identifier>,
90+
pub pre: Vec<Identifier>,
9191
/// The build metadata, ignored when determining version precedence.
92-
build: Vec<Identifier>,
92+
pub build: Vec<Identifier>,
9393
}
9494

9595
impl fmt::Show for Version {

0 commit comments

Comments
 (0)