idl: Keep crate and `spec` version the same (#2901)
This commit is contained in:
parent
1f0bf0ee60
commit
7356bd5afe
|
@ -265,7 +265,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "anchor-idl"
|
||||
version = "0.29.0"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anchor-syn",
|
||||
"anyhow",
|
||||
|
|
|
@ -17,7 +17,7 @@ dev = []
|
|||
|
||||
[dependencies]
|
||||
anchor-client = { path = "../client", version = "0.29.0" }
|
||||
anchor-idl = { path = "../idl", features = ["build"], version = "0.29.0" }
|
||||
anchor-idl = { path = "../idl", features = ["build"], version = "0.1.0" }
|
||||
anchor-lang = { path = "../lang", version = "0.29.0" }
|
||||
anyhow = "1.0.32"
|
||||
base64 = "0.21"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anchor-idl"
|
||||
version = "0.29.0"
|
||||
version = "0.1.0"
|
||||
authors = ["Anchor Maintainers <accounts@200ms.io>"]
|
||||
repository = "https://github.com/coral-xyz/anchor"
|
||||
rust-version = "1.60"
|
||||
|
|
|
@ -4,7 +4,7 @@ use anyhow::anyhow;
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// IDL specification Semantic Version
|
||||
pub const IDL_SPEC: &str = "0.1.0";
|
||||
pub const IDL_SPEC: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
pub struct Idl {
|
||||
|
|
|
@ -50,7 +50,7 @@ anchor-derive-serde = { path = "./derive/serde", version = "0.29.0" }
|
|||
anchor-derive-space = { path = "./derive/space", version = "0.29.0" }
|
||||
|
||||
# `anchor-idl` should only be included with `idl-build` feature
|
||||
anchor-idl = { path = "../idl", version = "0.29.0", optional = true }
|
||||
anchor-idl = { path = "../idl", version = "0.1.0", optional = true }
|
||||
|
||||
arrayref = "0.3"
|
||||
base64 = "0.21"
|
||||
|
|
|
@ -17,7 +17,7 @@ idl-build = ["anchor-syn/idl-build"]
|
|||
interface-instructions = ["anchor-syn/interface-instructions"]
|
||||
|
||||
[dependencies]
|
||||
anchor-idl = { path = "../../../idl", version = "0.29.0" }
|
||||
anchor-idl = { path = "../../../idl", version = "0.1.0" }
|
||||
anchor-syn = { path = "../../syn", version = "0.29.0" }
|
||||
anyhow = "1"
|
||||
bs58 = "0.5"
|
||||
|
|
Loading…
Reference in New Issue