https://github.com/rust-for-linux/klint
Lints for kernel or embedded system development.
https://github.com/rust-for-linux/klint
Last synced: 10 months ago
JSON representation
Lints for kernel or embedded system development.
- Host: GitHub
- URL: https://github.com/rust-for-linux/klint
- Owner: Rust-for-Linux
- License: apache-2.0
- Created: 2021-06-01T00:31:24.000Z (over 4 years ago)
- Default Branch: trunk
- Last Pushed: 2025-03-19T16:25:36.000Z (10 months ago)
- Last Synced: 2025-03-30T08:08:10.163Z (10 months ago)
- Language: Rust
- Homepage:
- Size: 382 KB
- Stars: 104
- Watchers: 11
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
klint
=====
Lints for kernel or embedded system development.
## Installation and Usage
Clone the repository and run `cargo install`:
```console
git clone https://github.com/Rust-for-Linux/klint.git
cd klint
cargo install --path .
```
Note that klint currently is pinned to a Rust version so it is likely that running `cargo install --git` will not work as it will not use the `rust-toolchain` file in the repository.
To run this tool, use rustup which will prepare the necessary environment variables:
```
rustup run 1.85 klint
```
`klint` will behave like rustc, just with additional lints.
## Implemented Lints
* [Infallible allocation](doc/infallible_allocation.md)
* [Atomic context](doc/atomic_context.md)