Skip to content

Commit b1a6d91

Browse files
committed
Update dependencies (and rename of custom_error to context_error)
1 parent f6006e8 commit b1a6d91

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+56
-56
lines changed

Cargo.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ package.authors = [
1616
package.edition = "2024"
1717
package.license = "MIT OR Apache-2.0"
1818
package.rust-version = "1.88.0"
19-
package.version = "0.10.0"
19+
package.version = "0.11.0"
2020
default-members = ["rustyms"]
2121

2222
[profile.release]
@@ -31,18 +31,17 @@ afl = "0.15"
3131
base64 = "0.22"
3232
bincode = { version = "2.0", features = ["serde"] }
3333
clap = { version = "4.5", features = ["derive", "cargo"] }
34-
custom_error = {git="https://github.com/douweschulte/custom_error", features = ["serde"]}
35-
#custom_error = {path="../custom_error", features = ["serde"]}
34+
context_error = {version = "0.1", features = ["serde"]}
3635
directories = "6.0"
3736
flate2 = "1.0"
3837
itertools = "0.14"
39-
mzdata = {version="0.57", default-features = false, features = ["miniz_oxide"]}
38+
mzdata = {version="0.59", default-features = false}
4039
ndarray = "0.16"
4140
ordered-float = { version = "5.0", features = ["serde"] }
4241
paste = "1.0"
43-
png = "0.17"
42+
png = "0.18"
4443
probability = "0.20"
45-
pyo3 = "0.25"
44+
pyo3 = "0.26"
4645
rand = "0.9"
4746
rayon = "1.10"
4847
regex = "1.11"

examples/multi-annotator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ publish = false
88

99
[dependencies]
1010
clap = { workspace = true }
11-
custom_error = { workspace = true }
11+
context_error = { workspace = true }
1212
directories = { workspace = true }
1313
itertools = { workspace = true }
1414
mzdata = { workspace = true, default-features=false, features = ["mgf", "mzml", "thermo", "bruker_tdf"] }

examples/multi-annotator/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::{
1313
},
1414
};
1515

16-
use custom_error::CombineErrorsExtender;
16+
use context_error::CombineErrorsExtender;
1717

1818
use clap::Parser;
1919
use directories::ProjectDirs;

examples/peptidoform-file-converter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ publish = false
88

99
[dependencies]
1010
clap = { workspace = true }
11-
custom_error = { workspace = true }
11+
context_error = { workspace = true }
1212
directories = { workspace = true }
1313
rustyms = { path = "../../rustyms", default-features=false, features = ["identification", "coloured-errors"] }
1414

examples/peptidoform-file-converter/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77
};
88

99
use clap::Parser;
10-
use custom_error::{BasicKind, BoxedError, Context, CreateError};
10+
use context_error::{BasicKind, BoxedError, Context, CreateError};
1111
use directories::ProjectDirs;
1212
use rustyms::{
1313
identification::{
@@ -126,7 +126,7 @@ fn main() {
126126
.compound_peptidoform_ion()
127127
.map(std::borrow::Cow::into_owned),))
128128
}) {
129-
custom_error::combine_error(&mut errors, error, ());
129+
context_error::combine_error(&mut errors, error, ());
130130
}
131131
}
132132
if errors.is_empty() {

rustyms-py/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ name = "rustyms_py"
1111
crate-type = ["cdylib"]
1212

1313
[dependencies]
14-
custom_error = { workspace = true }
14+
context_error = { workspace = true }
1515
ordered-float = { workspace = true }
1616
pyo3 = { workspace = true }
1717
rustyms = { path = "../rustyms" }

rustyms-py/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@ fn rustyms_py03(_py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
17981798
/// An error with context where it originated
17991799
#[pyclass]
18001800
#[derive(Debug)]
1801-
pub struct BoxedError(custom_error::BoxedError<'static, custom_error::BasicKind>);
1801+
pub struct BoxedError(context_error::BoxedError<'static, context_error::BasicKind>);
18021802

18031803
impl std::error::Error for BoxedError {}
18041804

rustyms/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include = ["src/**/*", "images/**/*", "README.md", "build.rs", "benches/**/*"]
1515

1616
[dependencies]
1717
bincode = { workspace = true }
18-
custom_error = { workspace = true }
18+
context_error = { workspace = true }
1919
flate2 = { workspace = true }
2020
itertools = { workspace = true }
2121
mzdata = { workspace = true, optional = true }
@@ -58,7 +58,7 @@ isotopes = ["probability", "ndarray"]
5858
glycan-render = []
5959
glycan-render-bitmap = ["zeno", "swash", "glycan-render"]
6060
internal-no-data = []
61-
coloured-errors = ["custom_error/colored"]
61+
coloured-errors = ["context_error/colored"]
6262

6363
[lints]
6464
workspace = true

rustyms/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ reading of [mgf](spectrum::mgf), doing [spectrum annotation](crate::annotation::
2828
## Example usage
2929

3030
```rust
31-
# fn main() -> Result<(), custom_error::BoxedError<'static, custom_error::BasicKind>> {
31+
# fn main() -> Result<(), context_error::BoxedError<'static, context_error::BasicKind>> {
3232
# let raw_file_path = "data/annotated_example.mgf";
3333
use rustyms::{prelude::*, system::{isize::Charge, e}};
3434
// Open example raw data (this is the built in mgf reader, look into mzdata for more advanced raw file readers)
@@ -50,7 +50,7 @@ assert!(fdr.peaks_sigma() > 2.0);
5050
```
5151

5252
```rust
53-
# fn main() -> Result<(), custom_error::BoxedError<'static, custom_error::BasicKind>> {
53+
# fn main() -> Result<(), context_error::BoxedError<'static, context_error::BasicKind>> {
5454
use rustyms::{prelude::*, sequence::SimpleLinear, align::*};
5555
// Check how this peptide compares to a similar peptide (using the feature `align`)
5656
let first_peptide = Peptidoform::pro_forma("IVQEVT", None)?.into_simple_linear().unwrap();

rustyms/src/annotation/model/custom_models.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::path::Path;
22

3-
use custom_error::*;
3+
use context_error::*;
44

55
use crate::{annotation::model::FragmentationModel, parse_json::ParseJson};
66

0 commit comments

Comments
 (0)