diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-12-21 04:20:53 +0000 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-12-22 08:05:20 +0000 |
| commit | 96708614ba46c42f87b23f2a957c510499d8811e (patch) | |
| tree | 372dcf90f1a6fdf1b90f5d006ce7a32717f47166 /subprojects/thiserror/Cargo.toml | |
| parent | 0ec856797256b5d9807929e1b32c03756eb43124 (diff) | |
| download | gentoo-utils-feature/port-to-meson-cargo.tar.gz | |
port to meson cargoHEADmasterfeature/port-to-meson-cargo
Use the new unstable meson cargo support. This simplifies the
meson.build script and allows to use crates such as clap that require
picking up features from Cargo.toml.
This also allows us to not embed thiserror in subprojects, and instead
use a wrap file with a custom meson.build and some patches to make it
compile without running its build.rs script.
Diffstat (limited to 'subprojects/thiserror/Cargo.toml')
| -rw-r--r-- | subprojects/thiserror/Cargo.toml | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/subprojects/thiserror/Cargo.toml b/subprojects/thiserror/Cargo.toml deleted file mode 100644 index a4364bd..0000000 --- a/subprojects/thiserror/Cargo.toml +++ /dev/null @@ -1,50 +0,0 @@ -[package] -name = "thiserror" -version = "2.0.17" -authors = ["David Tolnay <dtolnay@gmail.com>"] -categories = ["rust-patterns", "no-std"] -description = "derive(Error)" -documentation = "https://docs.rs/thiserror" -edition = "2021" -keywords = ["error", "error-handling", "derive"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/dtolnay/thiserror" -rust-version = "1.68" - -[features] -default = ["std"] - -# Std feature enables support for formatting std::path::{Path, PathBuf} -# conveniently in an error message. -# -# #[derive(Error, Debug)] -# #[error("failed to create configuration file {path}")] -# pub struct MyError { -# pub path: PathBuf, -# pub source: std::io::Error, -# } -# -# Without std, this would need to be written #[error("... {}", path.display())]. -std = [] - -[dependencies] -thiserror-impl = { version = "=2.0.17", path = "impl" } - -[dev-dependencies] -anyhow = "1.0.73" -ref-cast = "1.0.18" -rustversion = "1.0.13" -trybuild = { version = "1.0.108", features = ["diff"] } - -[workspace] -members = ["impl", "tests/no-std"] - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] -rustdoc-args = [ - "--generate-link-to-definition", - "--generate-macro-expansion", - "--extern-html-root-url=core=https://doc.rust-lang.org", - "--extern-html-root-url=alloc=https://doc.rust-lang.org", - "--extern-html-root-url=std=https://doc.rust-lang.org", -] |
