Skip to content

Commit

Permalink
🔨 chore: test rust docs
Browse files Browse the repository at this point in the history
Signed-off-by: xtrm <[email protected]>
  • Loading branch information
xtrm-en committed Jan 30, 2024
1 parent 3c9c6ac commit 361c5e2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ft-rs"
version = "0.0.1"
version = "0.0.2"
authors = [
"Killian ROUSSARIE <[email protected]>"
]
Expand All @@ -17,3 +17,9 @@ edition = "2021"
rust-version = "1.56"

[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
log = "0.4"

[features]
default = []
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# ft-rs
> Because of course it starts with `ft`
> *Because of course it starts with `ft`*
22 changes: 10 additions & 12 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}
#![deny(clippy::all)]
#![deny(clippy::pedantic)]
#![deny(clippy::nursery)]
#![deny(clippy::cargo)]
#![deny(missing_docs)]

#[cfg(test)]
mod tests {
use super::*;
#![allow(clippy::module_name_repetitions)]
#![allow(clippy::items_after_statements)]

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
//! # ft-rs
//! This is a small library to help you with your rust projects.
//! It contains a lot of useful functions and macros.

0 comments on commit 361c5e2

Please sign in to comment.