diff --git a/mk/crates.mk b/mk/crates.mk index b447dbda9e08e..f3d71da9eaa87 100644 --- a/mk/crates.mk +++ b/mk/crates.mk @@ -49,7 +49,7 @@ # automatically generated for all stage/host/target combinations. ################################################################################ -TARGET_CRATES := std extra green rustuv native flate arena glob term +TARGET_CRATES := std extra green rustuv native flate arena glob term semver HOST_CRATES := syntax rustc rustdoc CRATES := $(TARGET_CRATES) $(HOST_CRATES) TOOLS := compiletest rustdoc rustc @@ -66,6 +66,7 @@ DEPS_flate := std native:miniz DEPS_arena := std extra DEPS_glob := std DEPS_term := std +DEPS_semver := std TOOL_DEPS_compiletest := extra green rustuv TOOL_DEPS_rustdoc := rustdoc green rustuv diff --git a/src/doc/index.md b/src/doc/index.md index 730c9c744f6f6..a639ca16f35f7 100644 --- a/src/doc/index.md +++ b/src/doc/index.md @@ -40,6 +40,7 @@ li {list-style-type: none; } * [The `arena` allocation library](arena/index.html) * [The `flate` compression library](flate/index.html) * [The `glob` file path matching library](glob/index.html) +* [The `semver` version collation library](semver/index.html) * [The `term` terminal-handling library](term/index.html) # Tooling diff --git a/src/libextra/lib.rs b/src/libextra/lib.rs index e2a4b52c810d2..d95a770e57902 100644 --- a/src/libextra/lib.rs +++ b/src/libextra/lib.rs @@ -78,7 +78,6 @@ pub mod rational; #[path="num/complex.rs"] pub mod complex; pub mod stats; -pub mod semver; pub mod hex; pub mod uuid; diff --git a/src/libextra/semver.rs b/src/libsemver/lib.rs similarity index 99% rename from src/libextra/semver.rs rename to src/libsemver/lib.rs index 0faf4ee664eaa..01feb1c8c0d48 100644 --- a/src/libextra/semver.rs +++ b/src/libsemver/lib.rs @@ -28,6 +28,11 @@ //! An example version number with all five components is //! `0.8.1-rc.3.0+20130922.linux`. +#[crate_id = "semver#0.10-pre"]; +#[crate_type = "rlib"]; +#[crate_type = "dylib"]; +#[license = "MIT/ASL2"]; + use std::char; use std::cmp; use std::option::{Option, Some, None};