diff --git a/crates/codegen/runtime/cargo/crate/Cargo.toml b/crates/codegen/runtime/cargo/crate/Cargo.toml index dea69d8bb6..a80490b8b4 100644 --- a/crates/codegen/runtime/cargo/crate/Cargo.toml +++ b/crates/codegen/runtime/cargo/crate/Cargo.toml @@ -11,6 +11,7 @@ description = "Cargo runtime copied over by codegen" [features] default = [] __experimental_bindings_api = ["dep:metaslang_bindings"] +__internal_compilation_api = [] __private_ariadne_errors = ["dep:ariadne"] __private_testing_utils = [] diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/compilation/internal.rs b/crates/codegen/runtime/cargo/crate/src/runtime/compilation/internal.rs new file mode 100644 index 0000000000..c690b5d347 --- /dev/null +++ b/crates/codegen/runtime/cargo/crate/src/runtime/compilation/internal.rs @@ -0,0 +1 @@ +pub struct InternalCompilation {} diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/compilation/mod.rs b/crates/codegen/runtime/cargo/crate/src/runtime/compilation/mod.rs new file mode 100644 index 0000000000..a4e11b4c88 --- /dev/null +++ b/crates/codegen/runtime/cargo/crate/src/runtime/compilation/mod.rs @@ -0,0 +1,4 @@ +mod internal; + +/// Only intended to be used internally by the TypeScript comilation API. +pub use internal::Compilation; diff --git a/crates/codegen/runtime/cargo/crate/src/runtime/mod.rs b/crates/codegen/runtime/cargo/crate/src/runtime/mod.rs index 771c022ec4..133bbcc001 100644 --- a/crates/codegen/runtime/cargo/crate/src/runtime/mod.rs +++ b/crates/codegen/runtime/cargo/crate/src/runtime/mod.rs @@ -1,5 +1,7 @@ #[cfg(feature = "__experimental_bindings_api")] pub mod bindings; +#[cfg(feature = "__internal_compilation_api")] +pub mod compilation; pub mod cst; pub mod diagnostic; pub mod language; diff --git a/crates/solidity/outputs/cargo/crate/Cargo.toml b/crates/solidity/outputs/cargo/crate/Cargo.toml index 3519125a2c..31b31e0762 100644 --- a/crates/solidity/outputs/cargo/crate/Cargo.toml +++ b/crates/solidity/outputs/cargo/crate/Cargo.toml @@ -31,6 +31,7 @@ categories = [ [features] default = [] __experimental_bindings_api = ["dep:metaslang_bindings"] +__internal_compilation_api = [] __private_ariadne_errors = ["dep:ariadne"] __private_testing_utils = [] diff --git a/crates/solidity/outputs/cargo/crate/generated/public_api.txt b/crates/solidity/outputs/cargo/crate/generated/public_api.txt index 5169e9aab8..00df247bb9 100644 --- a/crates/solidity/outputs/cargo/crate/generated/public_api.txt +++ b/crates/solidity/outputs/cargo/crate/generated/public_api.txt @@ -8,6 +8,7 @@ pub fn slang_solidity::bindings::get_built_ins(version: &semver::Version) -> &'s pub type slang_solidity::bindings::Bindings = metaslang_bindings::Bindings pub type slang_solidity::bindings::Definition<'a> = metaslang_bindings::Definition<'a, slang_solidity::cst::KindTypes> pub type slang_solidity::bindings::Reference<'a> = metaslang_bindings::Reference<'a, slang_solidity::cst::KindTypes> +pub mod slang_solidity::compilation pub mod slang_solidity::cst pub use slang_solidity::cst::EdgeLabelExtensions pub use slang_solidity::cst::NonterminalKindExtensions @@ -880,6 +881,10 @@ pub fn slang_solidity::parser::ParseError::message(&self) -> alloc::string::Stri pub fn slang_solidity::parser::ParseError::severity(&self) -> slang_solidity::diagnostic::Severity pub fn slang_solidity::parser::ParseError::text_range(&self) -> metaslang_cst::text_index::TextRange pub fn slang_solidity::diagnostic::render(error: &D, source_id: &str, source: &str, with_color: bool) -> alloc::string::String +pub mod slang_solidity::language +pub struct slang_solidity::language::LanguageFacts +impl slang_solidity::language::LanguageFacts +pub const slang_solidity::language::LanguageFacts::SUPPORTED_VERSIONS: &'static [semver::Version] pub mod slang_solidity::parser pub enum slang_solidity::parser::ParserInitializationError pub slang_solidity::parser::ParserInitializationError::UnsupportedLanguageVersion(semver::Version) @@ -921,7 +926,6 @@ pub struct slang_solidity::parser::Parser pub slang_solidity::parser::Parser::version: semver::Version impl slang_solidity::parser::Parser pub const slang_solidity::parser::Parser::ROOT_KIND: slang_solidity::cst::NonterminalKind -pub const slang_solidity::parser::Parser::SUPPORTED_VERSIONS: &'static [semver::Version] pub fn slang_solidity::parser::Parser::create(version: semver::Version) -> core::result::Result pub fn slang_solidity::parser::Parser::parse(&self, kind: slang_solidity::cst::NonterminalKind, input: &str) -> slang_solidity::parser::ParseOutput pub fn slang_solidity::parser::Parser::version(&self) -> &semver::Version diff --git a/crates/solidity/outputs/cargo/crate/src/generated/compilation/internal.rs b/crates/solidity/outputs/cargo/crate/src/generated/compilation/internal.rs new file mode 100644 index 0000000000..beb707bdcf --- /dev/null +++ b/crates/solidity/outputs/cargo/crate/src/generated/compilation/internal.rs @@ -0,0 +1,3 @@ +// This file is generated automatically by infrastructure scripts. Please don't edit by hand. + +pub struct InternalCompilation {} diff --git a/crates/solidity/outputs/cargo/crate/src/generated/compilation/mod.rs b/crates/solidity/outputs/cargo/crate/src/generated/compilation/mod.rs new file mode 100644 index 0000000000..2b8a60991f --- /dev/null +++ b/crates/solidity/outputs/cargo/crate/src/generated/compilation/mod.rs @@ -0,0 +1,6 @@ +// This file is generated automatically by infrastructure scripts. Please don't edit by hand. + +mod internal; + +/// Only intended to be used internally by the TypeScript comilation API. +pub use internal::Compilation; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/mod.rs b/crates/solidity/outputs/cargo/crate/src/generated/mod.rs index 98749483d7..1466b0414d 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/mod.rs +++ b/crates/solidity/outputs/cargo/crate/src/generated/mod.rs @@ -2,6 +2,8 @@ #[cfg(feature = "__experimental_bindings_api")] pub mod bindings; +#[cfg(feature = "__internal_compilation_api")] +pub mod compilation; pub mod cst; pub mod diagnostic; pub mod language; diff --git a/crates/testlang/outputs/cargo/crate/Cargo.toml b/crates/testlang/outputs/cargo/crate/Cargo.toml index eeb4213383..7f1645f8a6 100644 --- a/crates/testlang/outputs/cargo/crate/Cargo.toml +++ b/crates/testlang/outputs/cargo/crate/Cargo.toml @@ -10,6 +10,7 @@ name = "slang_testlang" [features] default = [] __experimental_bindings_api = ["dep:metaslang_bindings"] +__internal_compilation_api = [] __private_ariadne_errors = ["dep:ariadne"] __private_testing_utils = [] diff --git a/crates/testlang/outputs/cargo/crate/src/generated/compilation/internal.rs b/crates/testlang/outputs/cargo/crate/src/generated/compilation/internal.rs new file mode 100644 index 0000000000..beb707bdcf --- /dev/null +++ b/crates/testlang/outputs/cargo/crate/src/generated/compilation/internal.rs @@ -0,0 +1,3 @@ +// This file is generated automatically by infrastructure scripts. Please don't edit by hand. + +pub struct InternalCompilation {} diff --git a/crates/testlang/outputs/cargo/crate/src/generated/compilation/mod.rs b/crates/testlang/outputs/cargo/crate/src/generated/compilation/mod.rs new file mode 100644 index 0000000000..2b8a60991f --- /dev/null +++ b/crates/testlang/outputs/cargo/crate/src/generated/compilation/mod.rs @@ -0,0 +1,6 @@ +// This file is generated automatically by infrastructure scripts. Please don't edit by hand. + +mod internal; + +/// Only intended to be used internally by the TypeScript comilation API. +pub use internal::Compilation; diff --git a/crates/testlang/outputs/cargo/crate/src/generated/mod.rs b/crates/testlang/outputs/cargo/crate/src/generated/mod.rs index 98749483d7..1466b0414d 100644 --- a/crates/testlang/outputs/cargo/crate/src/generated/mod.rs +++ b/crates/testlang/outputs/cargo/crate/src/generated/mod.rs @@ -2,6 +2,8 @@ #[cfg(feature = "__experimental_bindings_api")] pub mod bindings; +#[cfg(feature = "__internal_compilation_api")] +pub mod compilation; pub mod cst; pub mod diagnostic; pub mod language;