[−][src]Crate dia_semver
An implementation of https://semver.org
Project
- Repository: https://bitbucket.org/haibison/dia-semver
- License: Nice License 1.0.0 (see LICENSE file at root directory of
master
branch) - This project follows Semantic Versioning 2.0.0
Features
- Supporting 2.0.0 specification.
- Tolerant parser: leading/trailing white spaces are ignored; minor and patch version numbers are optional. This parser is added
by the crate author, and is not described in official specification. See
Semver
for more details. - Handy functions:
is_stable()
,is_early()
,parse_pre_release()
,new_major()
,new_minor()
,new_patch()
...
Notes
The crate uses #![no_std]
by default. Documentation is built with all features, which include std
. If you see some components from
std
crate, you have to use that feature.
Modules
specification | Specification |
version_info |
|
Structs
ParseSemverError | Error while parsing semver. |
Semver | Semver. |
Enums
PreRelease | Pre-release. |
SemverErrorKind | Semver error kind. |
Constants
CODE_NAME | Crate code name |
ID | ID of this crate |
NAME | Crate name |
RELEASE_DATE | Crate release date (year/month/day) |
TAG | Tag, which can be used for logging... |
VERSION | Crate version |
Type Definitions
Result | Result type used in this crate |