Skip to content

Commit

Permalink
cli: Anchor registry publishing (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante authored Aug 8, 2021
1 parent 098c2a0 commit 3248481
Show file tree
Hide file tree
Showing 13 changed files with 979 additions and 297 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ incremented for features.

## [Unreleased]

### Features

* cli: Adds a [registry] section in the Anchor toml ([#570](https://github.com/project-serum/anchor/pull/570)).
* cli: Adds the anchor login <api-token> command ([#570](https://github.com/project-serum/anchor/pull/570)).
* cli: Adds the anchor publish <package> command ([#570](https://github.com/project-serum/anchor/pull/570)).
* cli: Adds a root level anchor_version field to the Anchor.toml for specifying the cli version to build with for verifiable build ([#570](https://github.com/project-serum/anchor/pull/570)).

### Breaking

* cli: `[clusters.<network>]` Anchor.toml section has been renamed to `[programs.<network>]` ([#570](https://github.com/project-serum/anchor/pull/570)).
* cli: `[workspace]` member and exclude arrays must now be filepaths relative to the workpsace root ([#570](https://github.com/project-serum/anchor/pull/570)).

## [0.12.0] - 2021-08-03

### Features
Expand Down
76 changes: 72 additions & 4 deletions Cargo.lock

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

7 changes: 6 additions & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"

[[bin]]
name = "anchor"
path = "src/main.rs"
path = "src/bin/main.rs"

[features]
dev = []
Expand All @@ -31,3 +31,8 @@ dirs = "3.0"
heck = "0.3.1"
flate2 = "1.0.19"
rand = "0.7.3"
tar = "0.4.35"
reqwest = { version = "0.11.4", features = ["multipart", "blocking"] }
tokio = "1.0"
pathdiff = "0.2.0"
cargo_toml = "0.9.2"
7 changes: 7 additions & 0 deletions cli/src/bin/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
use anchor_cli::Opts;
use anyhow::Result;
use clap::Clap;

fn main() -> Result<()> {
anchor_cli::entry(Opts::parse())
}
Loading

0 comments on commit 3248481

Please sign in to comment.