Skip to content

Commit fb394e7

Browse files
authored
Updates to README and documentation
Merges: #2
2 parents 5c5ba1a + 52257ab commit fb394e7

File tree

6 files changed

+40
-24
lines changed

6 files changed

+40
-24
lines changed

.github/workflows/formal.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Formal checks
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
8+
jobs:
9+
rustfmt:
10+
runs-on: ubuntu-latest
11+
container: rustlang/rust:nightly
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
- name: Run cargo-fmt
17+
run: cargo fmt --check
18+
19+
cargo-readme:
20+
runs-on: ubuntu-latest
21+
container: rustlang/rust:nightly
22+
steps:
23+
- uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 0
26+
- uses: actions-rs/[email protected]
27+
with:
28+
crate: cargo-readme
29+
version: latest
30+
- name: Verify that README.rst is up to date
31+
run: cargo +nightly readme | diff /dev/stdin README.md

.github/workflows/rustfmt.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[package]
22
name = "riot-sys"
33
version = "0.7.7"
4-
authors = ["Christian M. Amsüss <ca@etonomy.org>"]
4+
authors = ["Christian Amsüss <chrysn@fsfe.org>"]
55
edition = "2018"
66

77
description = "Rust FFI wrappers for the RIOT operating system"
88
documentation = "https://rustdoc.etonomy.org/riot_sys/"
9-
repository = "https://gitlab.com/etonomy/riot-sys"
10-
readme = "README.md"
9+
repository = "https://github.com/RIOT-OS/rust-riot-sys/"
1110
keywords = ["riot", "riot-os", "iot", "bindings"]
1211
categories = ["external-ffi-bindings", "no-std"]
1312
license = "LGPL-2.1"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ License
8484
This crate is licensed under the same terms as of the LGPL-2.1, following the
8585
license terms of the RIOT Operating System.
8686

87-
It is maintained by Christian M. Amsüss <ca@etonomy.org> as part of the etonomy
88-
project, see <https://etonomy.org/>.
87+
It is maintained by Christian Amsüss <chrysn@fsfe.org> as part of the etonomy
88+
project, see <https://etonomy.org/>, and the RIOT team.

README.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ License
1010
This crate is licensed under the same terms as of the {{license}}, following the
1111
license terms of the RIOT Operating System.
1212

13-
It is maintained by Christian M. Amsüss <ca@etonomy.org> as part of the etonomy
14-
project, see <https://etonomy.org/>.
13+
It is maintained by Christian Amsüss <chrysn@fsfe.org> as part of the etonomy
14+
project, see <https://etonomy.org/>, and the RIOT team.

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
//!
6262
//! [C2Rust]: https://c2rust.com/
6363
//!
64+
//! Usually, the `c2rust` binary is selected through the `PATH` environment variable.
65+
//! The `C2RUST` environment variable can be used to override this.
66+
//!
6467
//! ---
6568
//!
6669
//! The types and constants of RIOT are translated in two forms:

0 commit comments

Comments
 (0)