idl: Keep crate and `spec` version the same (#2901)

This commit is contained in:
acheron 2024-04-13 01:06:45 +02:00 committed by GitHub
parent 1f0bf0ee60
commit 7356bd5afe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 6 additions and 6 deletions

2
Cargo.lock generated
View File

@ -265,7 +265,7 @@ dependencies = [
[[package]]
name = "anchor-idl"
version = "0.29.0"
version = "0.1.0"
dependencies = [
"anchor-syn",
"anyhow",

View File

@ -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"

View File

@ -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"

View File

@ -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 {

View File

@ -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"

View File

@ -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"