Skip to content

Commit

Permalink
v0.4.0 (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante authored Apr 4, 2021
1 parent 8289e47 commit 719602e
Show file tree
Hide file tree
Showing 19 changed files with 50 additions and 52 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ incremented for features.

## [Unreleased]

## [0.4.0] - 2021-04-04

## Features

* cli: Specify test files to run ([#118](https://github.com/project-serum/anchor/pull/118)).
Expand Down
26 changes: 13 additions & 13 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-cli"
version = "0.3.0"
version = "0.4.0"
authors = ["armaniferrante <armaniferrante@gmail.com>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion cli/src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cpi = ["no-entrypoint"]
default = []
[dependencies]
anchor-lang = "0.3.0"
anchor-lang = "0.4.0"
"#,
name,
name.to_snake_case(),
Expand Down
4 changes: 2 additions & 2 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "anchor-client"
version = "0.3.0"
version = "0.4.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
edition = "2018"
license = "Apache-2.0"
description = "Rust client for Anchor programs"

[dependencies]
anchor-lang = { path = "../lang", version = "0.3.0" }
anchor-lang = { path = "../lang", version = "0.4.0" }
anyhow = "1.0.32"
regex = "1.4.5"
solana-client = "1.6.3"
Expand Down
4 changes: 2 additions & 2 deletions docs/src/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rustup component add rustfmt

## Install Solana

See the solana [docs](https://docs.solana.com/cli/install-solana-cli-tools) for installation instructions. Version 1.5.5 is required. On macOS and Linux,
See the solana [docs](https://docs.solana.com/cli/install-solana-cli-tools) for installation instructions. Version 1.6.3 is required. On macOS and Linux,

```bash
sh -c "$(curl -sSfL https://release.solana.com/v1.6.3/install)"
Expand All @@ -34,7 +34,7 @@ npm install -g mocha
For now, we can use Cargo to install the CLI.

```bash
cargo install --git https://github.com/project-serum/anchor anchor-cli --locked
cargo install --git https://github.com/project-serum/anchor --tag v0.4.0 anchor-cli --locked
```

On Linux systems you may need to install additional dependencies. On Ubuntu,
Expand Down
18 changes: 9 additions & 9 deletions lang/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-lang"
version = "0.3.0"
version = "0.4.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
edition = "2018"
Expand All @@ -12,14 +12,14 @@ derive = []
default = []

[dependencies]
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.3.0" }
anchor-attribute-account = { path = "./attribute/account", version = "0.3.0" }
anchor-attribute-error = { path = "./attribute/error", version = "0.3.0" }
anchor-attribute-program = { path = "./attribute/program", version = "0.3.0" }
anchor-attribute-state = { path = "./attribute/state", version = "0.3.0" }
anchor-attribute-interface = { path = "./attribute/interface", version = "0.3.0" }
anchor-derive-accounts = { path = "./derive/accounts", version = "0.3.0" }
anchor-attribute-event = { path = "./attribute/event", version = "0.3.0" }
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.4.0" }
anchor-attribute-account = { path = "./attribute/account", version = "0.4.0" }
anchor-attribute-error = { path = "./attribute/error", version = "0.4.0" }
anchor-attribute-program = { path = "./attribute/program", version = "0.4.0" }
anchor-attribute-state = { path = "./attribute/state", version = "0.4.0" }
anchor-attribute-interface = { path = "./attribute/interface", version = "0.4.0" }
anchor-derive-accounts = { path = "./derive/accounts", version = "0.4.0" }
anchor-attribute-event = { path = "./attribute/event", version = "0.4.0" }
borsh = "0.8.2"
solana-program = "1.6.3"
thiserror = "1.0.20"
Expand Down
4 changes: 2 additions & 2 deletions lang/attribute/access-control/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-access-control"
version = "0.3.0"
version = "0.4.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -15,5 +15,5 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.3.0" }
anchor-syn = { path = "../../syn", version = "0.4.0" }
regex = "1.0"
4 changes: 2 additions & 2 deletions lang/attribute/account/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-account"
version = "0.3.0"
version = "0.4.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -15,4 +15,4 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.3.0", features = ["hash"] }
anchor-syn = { path = "../../syn", version = "0.4.0", features = ["hash"] }
4 changes: 2 additions & 2 deletions lang/attribute/error/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-error"
version = "0.3.0"
version = "0.4.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -14,4 +14,4 @@ proc-macro = true
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anchor-syn = { path = "../../syn", version = "0.3.0" }
anchor-syn = { path = "../../syn", version = "0.4.0" }
4 changes: 2 additions & 2 deletions lang/attribute/event/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-event"
version = "0.3.0"
version = "0.4.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -15,4 +15,4 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.3.0", features = ["hash"] }
anchor-syn = { path = "../../syn", version = "0.4.0", features = ["hash"] }
4 changes: 2 additions & 2 deletions lang/attribute/interface/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-interface"
version = "0.3.0"
version = "0.4.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -15,5 +15,5 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.3.0" }
anchor-syn = { path = "../../syn", version = "0.4.0" }
heck = "0.3.2"
4 changes: 0 additions & 4 deletions lang/attribute/interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ use syn::parse_macro_input;
/// First we define the program that depends on an external interface.
///
/// ```ignore
/// #![feature(proc_macro_hygiene)]
///
/// use anchor_lang::prelude::*;
///
/// #[interface]
Expand Down Expand Up @@ -95,8 +93,6 @@ use syn::parse_macro_input;
/// program will call.
///
/// ```ignore
/// #![feature(proc_macro_hygiene)]
///
/// use anchor_lang::prelude::*;
/// use counter::Auth;
///
Expand Down
4 changes: 2 additions & 2 deletions lang/attribute/program/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-program"
version = "0.3.0"
version = "0.4.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -15,4 +15,4 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.3.0" }
anchor-syn = { path = "../../syn", version = "0.4.0" }
4 changes: 2 additions & 2 deletions lang/attribute/state/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-attribute-state"
version = "0.3.0"
version = "0.4.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -15,4 +15,4 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.3.0" }
anchor-syn = { path = "../../syn", version = "0.4.0" }
4 changes: 2 additions & 2 deletions lang/derive/accounts/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-derive-accounts"
version = "0.3.0"
version = "0.4.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand All @@ -15,4 +15,4 @@ proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0.60", features = ["full"] }
anyhow = "1.0.32"
anchor-syn = { path = "../../syn", version = "0.3.0" }
anchor-syn = { path = "../../syn", version = "0.4.0" }
2 changes: 1 addition & 1 deletion lang/syn/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "anchor-syn"
version = "0.3.0"
version = "0.4.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
repository = "https://github.com/project-serum/anchor"
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions spl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "anchor-spl"
version = "0.3.0"
version = "0.4.0"
authors = ["Serum Foundation <foundation@projectserum.com>"]
edition = "2018"
license = "Apache-2.0"
description = "CPI clients for SPL programs"

[dependencies]
anchor-lang = { path = "../lang", version = "0.3.0", features = ["derive"] }
anchor-lang = { path = "../lang", version = "0.4.0", features = ["derive"] }
spl-token = { version = "3.0.1", features = ["no-entrypoint"] }
solana-program = "1.6.3"
2 changes: 1 addition & 1 deletion ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@project-serum/anchor",
"version": "0.3.1-beta.3",
"version": "0.4.0",
"description": "Anchor client",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit 719602e

Please sign in to comment.