diff --git a/Cargo.lock b/Cargo.lock index 88c1c02b..a5a86b64 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -18424,6 +18424,13 @@ dependencies = [ "thiserror 1.0.69", ] +[[package]] +name = "sxt-chain-runtime" +version = "0.1.0" +dependencies = [ + "subxt", +] + [[package]] name = "sxt-core" version = "0.1.0" @@ -18460,6 +18467,7 @@ dependencies = [ "sp-runtime-interface", "sqlparser", "subxt", + "sxt-chain-runtime", "tokio", "tonic", ] diff --git a/Cargo.toml b/Cargo.toml index 02dd46c6..47812e52 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,7 @@ members = [ "proof-of-sql/commitment-map", "runtime", "sxt-core", + "sxt-chain-runtime", "proof-of-sql/on-chain-table", "proof-of-sql/commitment-sql", "proof-of-sql/static-setups", @@ -72,6 +73,7 @@ pallet-system-tables = { path = "pallets/system_tables", default-features = fals pallet-zkpay = { path = "pallets/zkpay", default-features = false } pallet-smartcontracts = { path = "pallets/smartcontracts", default-features = false} sxt-core = { path = "sxt-core", default-features = false } +sxt-chain-runtime = { path = "sxt-chain-runtime" } pallet-tables = { path = "pallets/tables", default-features = false } pallet-indexing = { path = "pallets/indexing", default-features = false } native = { path = "native", default-features = false } diff --git a/sxt-chain-runtime/Cargo.toml b/sxt-chain-runtime/Cargo.toml new file mode 100644 index 00000000..d2b5285e --- /dev/null +++ b/sxt-chain-runtime/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "sxt-chain-runtime" +version = "0.1.0" +license.workspace = true +authors.workspace = true +homepage.workspace = true +repository.workspace = true +edition.workspace = true + +[dependencies] +subxt = { workspace = true } + +[lints] +workspace = true + +[lib] +doc = false +doctest = false diff --git a/sxt-core/src/sxt_chain_runtime.rs b/sxt-chain-runtime/src/lib.rs similarity index 99% rename from sxt-core/src/sxt_chain_runtime.rs rename to sxt-chain-runtime/src/lib.rs index 10419dc0..43a6081a 100644 --- a/sxt-core/src/sxt_chain_runtime.rs +++ b/sxt-chain-runtime/src/lib.rs @@ -1,5 +1,11 @@ -#[allow(dead_code, unused_imports, non_camel_case_types, unreachable_patterns)] -#[allow(clippy::all)] +#![allow(clippy::all)] +#![allow( + dead_code, + missing_docs, + unused_imports, + non_camel_case_types, + unreachable_patterns +)] #[allow(rustdoc::broken_intra_doc_links)] pub mod api { #[allow(unused_imports)] diff --git a/sxt-core/Cargo.toml b/sxt-core/Cargo.toml index a92b9cd7..4a6a0587 100644 --- a/sxt-core/Cargo.toml +++ b/sxt-core/Cargo.toml @@ -32,6 +32,7 @@ tokio = { workspace = true, optional = true } sc-client-api = { workspace = true, default-features = false, optional = true } sp-blockchain = { workspace = true, default-features = false, optional = true } sp-api = { workspace = true, default-features = false, optional = true} +sxt-chain-runtime = { workspace = true, optional = true } proof-of-sql = { workspace = true, default-features = false } exponential-backoff = { workspace = true, default-features = false, optional = true } k256 = { workspace = true, default-features = false } @@ -68,6 +69,7 @@ std = [ "dep:sc-client-api", "dep:sp-blockchain", "dep:exponential-backoff", + "dep:sxt-chain-runtime", ] proptest = ["std", "dep:proptest", "on-chain-table/proptest"] diff --git a/sxt-core/src/lib.rs b/sxt-core/src/lib.rs index 2722f2ca..d561e615 100644 --- a/sxt-core/src/lib.rs +++ b/sxt-core/src/lib.rs @@ -27,7 +27,7 @@ pub mod attestation; /// Autogenerated code used by Subxt to interact with the network as a client #[cfg(all(feature = "std", not(doctest)))] #[allow(missing_docs)] -pub mod sxt_chain_runtime; +pub use sxt_chain_runtime; /// The maximum length of Identifiers pub const IDENT_LENGTH: u32 = 64;