-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: pre-release mega cleanup (#35)
* chore: pre-release mega cleanup * chore: inline one generic replace `fn (\w+)<\w+>(.*)\n\s*where\n\s*(.*),\n\s*\{` with `fn $1<$3>$2 {` * chore: add periods to docs script: ```rust fn main() { for file in std::env::args().skip(1) { let s = std::fs::read_to_string(&file).unwrap(); let mut lines = s.lines().map(ToString::to_string).collect::<Vec<_>>(); let len = lines.len().saturating_sub(1); for i in 0..len { let a = lines[i].trim(); let b = lines[i + 1].trim(); if a.starts_with("///") && !b.starts_with("///") && !a.ends_with('.') && !a.ends_with('>') && !a.ends_with('`') && !a.starts_with("/// [") && !a.ends_with("///") { lines[i].push('.'); } } let mut lines: String = lines.join("\n"); if s.ends_with('\n') { lines.push('\n'); } std::fs::write(file, lines).unwrap(); } } ``` * chore: clippy * fix: stop deriving in sol! except for Clone * more fixes * fix: no_std * chore: phase out `no_std_prelude` I assume this was inherited from Parity crates, but it is generally a bad practice. This commit simplifies `no_std_prelude` imports. Since `alloc` does not have to be gated on the `std` feature, we can strip down the module to the basic `std` prelude items. * nits
- Loading branch information
Showing
63 changed files
with
2,058 additions
and
1,879 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
msrv = "1.65" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/target | ||
/Cargo.lock | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.