Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 865ac0e

Browse files
committed
Updated our public facade.
1 parent 0595417 commit 865ac0e

File tree

3 files changed

+72
-10
lines changed

3 files changed

+72
-10
lines changed

CONTRIBUTING.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Contributing to semverver
2+
3+
Want to help developing semverver? Cool! See below on how to do that.
4+
5+
## Bug reports
6+
7+
If you encounter any unwanted behaviour from the tool, such as crashes or other unexpected
8+
output, or if you think you have found a bug, please open an issue in GitHub's issue
9+
tracker.
10+
11+
Please describe the steps to reproduce your problem, as well as what you expected to
12+
happen, and what happened instead. It is also useful to include the output of your command
13+
invocation(s) with the following environment: `RUST_LOG=debug RUST_BACKTRACE=full`.
14+
Please paste it at https://gist.github.com if the output is longer than a 50 lines or so.
15+
16+
## Feature requests
17+
18+
If you want to see some functionality added to semverver, you can also open an issue. Make
19+
sure to include what functionality you need exactly, why it is useful, and, depending on
20+
the complexity and/or how related the functionality is to the core project goals, why you
21+
think it should be implemented in semverver and not somewhere else.
22+
23+
## Working on issues
24+
25+
If you want to write code to make semverver better, please post in the issue(s) you want
26+
to tackle, and if you already have an idea/proposed solution, you are welcome to summarize
27+
it in case some discussion is necessary.
28+
29+
Here are some guidelines you should try to stick to:
30+
31+
* Please fork the repository on GitHub and create a feature branch in your fork.
32+
* Try to keep your code stylistically similar to the already existing codebase.
33+
* Commit your changes in compact, logically coupled chunks.
34+
* Make sure `cargo test` passes after your changes.
35+
* Run `rustfmt` on your code (for example by running `cargo fmt`).
36+
* If possible, fix any issues `cargo clippy` might find in your code.
37+
* Finally, make a pull request against the master branch on GitHub and wait for the CI to
38+
find any outstanding issues.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright Inokentiy Babushkin (c) 2017
1+
Copyright Inokentiy Babushkin (c) 2017-2019
22

33
All rights reserved.
44

README.md

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/qktm3ndv6cnbj01m?svg=true)](https://ci.appveyor.com/project/ibabushkin/rust-semverver)
55
[![Current Version](https://meritbadge.herokuapp.com/semverver)](https://crates.io/crates/semverver)
66

7-
This repository is hosting a proof-of-concept implementation of an automatic tool checking
8-
rust library crates for semantic versioning adherence, developed during the Google Summer
9-
of Code 2017. The goal is to provide an automated command akin to `cargo clippy` that
10-
analyzes the current crate's source code for changes compared to the most recent version
11-
on `crates.io`.
7+
`rust-semverver` is a tool to check semver-compliance in Rust library crates. The core of
8+
the tool has been developed as a student project during the Google Summer of Code 2017.
129

1310
Details on the work done during GSoC 2017 can be found
1411
[here](https://github.com/rust-dev-tools/rust-semverver/blob/master/doc/gsoc.md).
@@ -38,7 +35,7 @@ $ rustup update nightly
3835
$ cargo +nightly install semverver
3936
```
4037

41-
You'd also need `cmake` for some dependencies, and a few common libraries (if I you hit
38+
You'd also need `cmake` for some dependencies, and a few common libraries (if you hit
4239
build failures because of missing system-wide dependencies, please open an issue, so they
4340
can be added here).
4441

@@ -89,13 +86,27 @@ the cargo plugin:
8986

9087
```sh
9188
$ cargo semver -h
92-
usage: cargo semver [options] [-- cargo options]
89+
usage: cargo semver [options]
9390

9491
Options:
9592
-h, --help print this message and exit
9693
-V, --version print version information and exit
9794
-e, --explain print detailed error explanations
95+
-q, --quiet surpress regular cargo output, print only important
96+
messages
97+
--show-public print the public types in the current crate given by
98+
-c or -C and exit
9899
-d, --debug print command to debug and exit
100+
-a, --api-guidelines
101+
report only changes that are breaking according to the
102+
API-guidelines
103+
--features FEATURES
104+
Space-separated list of features to activate
105+
--all-features Activate all available features
106+
--no-default-features
107+
Do not activate the `default` feature
108+
--compact Only output the suggested version on stdout for
109+
further processing
99110
-s, --stable-path PATH
100111
use local path as stable/old crate
101112
-c, --current-path PATH
@@ -104,6 +115,8 @@ Options:
104115
use a `name:version` string as stable/old crate
105116
-C, --current-pkg NAME:VERSION
106117
use a `name:version` string as current/new crate
118+
--target <TRIPLE>
119+
Build for the target triple
107120
```
108121

109122
This means that you can compare any two crates' specified versions, as long as they are
@@ -159,5 +172,16 @@ correctly:
159172
* additions and removals of inherent impls or methods contained therein
160173
* additions and removals of trait impls
161174

162-
Yet, the results presented to the user are merely an approximation of the required
163-
versioning policy, especially at such an early stage of development.
175+
Keep in mind however that the results presented to the user are merely an approximation of
176+
the required versioning policy.
177+
178+
## Contributing
179+
180+
Please see
181+
[CONTRIBUTING.md](https://github.com/rust-dev-tools/rust-semverver/blob/master/CONTRIBUTING.md).
182+
183+
## License
184+
185+
`rust-semverver` is distributed under the terms of the 3-clause BSD license.
186+
187+
See LICENSE for details.

0 commit comments

Comments
 (0)