Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 29ef26c

Browse files
committedFeb 9, 2025
✨ Add I/O support
1 parent d26f449 commit 29ef26c

25 files changed

+696
-137
lines changed
 

‎.helix/snippets/rust.toml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ description = "the template of an error module"
1414
prefix = "modtest"
1515
scope = ["rust"]
1616
body = """#[cfg(test)]
17+
#[cfg_attr(coverage_nightly, coverage(off))]
1718
mod tests {
1819
1920
use test_log::test;

‎Cargo.lock

+37-39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ rust-version = "1.85"
1212
borsh = { version = "1.5.5", features = ["derive"] }
1313
bs58 = "0.5.1"
1414
chrono = { version = "0.4.39", features = ["serde"] }
15-
clap = { version = "4.5.27", features = ["derive"] }
15+
clap = { version = "4.5.28", features = ["derive"] }
1616
curve25519-dalek = "4.1.3"
17-
derive_more = { version = "1.0.0", features = ["from", "display"] }
17+
derive_more = { version = "2.0.1", features = ["from", "display"] }
1818
ed25519-dalek = { version = "2.1.1", features = ["rand_core"] }
1919
memmap2 = "0.9.5"
2020
mutants = "0.0.3"
@@ -31,6 +31,10 @@ cucumber = "0.21.1"
3131
test-log = { version = "0.2.17", features = ["trace"] }
3232

3333
[build-dependencies]
34+
35+
[patch.crates-io]
36+
borsh = { git = "https://github.com/VincentBerthier/borsh-rs", branch = "auto_derive_attr" }
37+
3438
# [[test]]
3539
# name = "core" # name of the test targets
3640
# harness = false # allow Cucumber to print output instead of libtest

‎Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ mutants: $(SOURCES)
6969

7070
.PHONY = coverage
7171
coverage: $(SOURCES) Cargo.toml
72-
cargo llvm-cov clean --profraw-only
73-
rm -rf target/llvm-cov-pretty
72+
rm -rf target/llvm-cov-*
7473
cargo llvm-cov --no-report --locked --all-features nextest
7574
cargo llvm-cov --all-features --doc --no-report
7675
cargo llvm-cov report --doctests --ignore-filename-regex='(main.rs$$)' --json --output-path ./target/coverage.json

‎src/account/error.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Creation date: Saturday 08 February 2025
44
// Author: Vincent Berthier <vincent.berthier@posteo.org>
55
// -----
6-
// Last modified: Saturday 08 February 2025 @ 16:09:45
6+
// Last modified: Sunday 09 February 2025 @ 16:52:47
77
// Modified by: Vincent Berthier
88
// -----
99
// Copyright (c) 2025 <Vincent Berthier>
@@ -34,6 +34,7 @@ use super::types::AccountType;
3434

3535
/// Errors of the account module.
3636
#[derive(Debug, Display, From)]
37+
#[display("during an account operation: {_variant}")]
3738
pub enum Error {
3839
/// Invalid key used to create account metadata
3940
#[display("invalid key use: {} (error: {:?})", key, kind)]

0 commit comments

Comments
 (0)
Please sign in to comment.