Skip to content

Commit

Permalink
Be very, very explicit about ariadne being unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed May 15, 2024
1 parent 67cd2d0 commit f0caf3f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion crates/codegen/parser/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ strum_macros = { workspace = true }
[features]
default = ["slang_napi_interfaces"]
slang_napi_interfaces = ["dep:napi", "dep:napi-derive", "dep:serde_json"]
ariadne = ["dep:ariadne"]
# Only used by the `slang_solidity` CLI
__private_ariadne = ["dep:ariadne"]

[lints]
workspace = true
2 changes: 1 addition & 1 deletion crates/codegen/parser/runtime/src/diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub trait Diagnostic: Error {
fn message(&self) -> String;
}

#[cfg(feature = "ariadne")]
#[cfg(feature = "__private_ariadne")]
pub fn render<D: Diagnostic>(error: &D, source_id: &str, source: &str, with_color: bool) -> String {
use ariadne::{Color, Config, Label, Report, ReportKind, Source};

Expand Down
4 changes: 2 additions & 2 deletions crates/solidity/outputs/cargo/slang_solidity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ required-features = ["cli"]

[features]
default = ["cli"]
cli = ["dep:anyhow", "dep:clap", "dep:serde_json", "ariadne"]
cli = ["dep:anyhow", "dep:clap", "dep:serde_json", "__private_ariadne"]
# This is meant to be used by the CLI or internally only.
ariadne = ["dep:ariadne"]
__private_ariadne = ["dep:ariadne"]

[build-dependencies] # __REMOVE_THIS_LINE_DURING_CARGO_PUBLISH__
anyhow = { workspace = true } # __REMOVE_THIS_LINE_DURING_CARGO_PUBLISH__
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/solidity/outputs/cargo/tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ infra_utils = { workspace = true }
once_cell = { workspace = true }
regex = { workspace = true }
semver = { workspace = true }
slang_solidity = { workspace = true }
slang_solidity = { workspace = true, features = ["__private_ariadne"] }
solidity_language = { workspace = true }
strum_macros = { workspace = true }

Expand Down
2 changes: 1 addition & 1 deletion crates/solidity/testing/sanctuary/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rayon = { workspace = true }
semver = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
slang_solidity = { workspace = true }
slang_solidity = { workspace = true, features = ["__private_ariadne"] }
strum_macros = { workspace = true }
url = { workspace = true }

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f0caf3f

Please sign in to comment.