Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new ink entrance crate #728

Merged
merged 20 commits into from
Sep 21, 2022
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:

clippy:
runs-on: ubuntu-latest
env:
RUSTC_BOOTSTRAP: 1
steps:
- name: Install toolchain
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -67,6 +69,7 @@ jobs:
os: ["ubuntu-22.04", "macos-12", "windows-2022"]
runs-on: ${{ matrix.os }}
env:
RUSTC_BOOTSTRAP: 1
RUST_BACKTRACE: full
steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]
- `--output-json` support for `call`, `instantiate` and `upload` commands - [#722](https://github.com/paritytech/cargo-contract/pull/722)
- Use new ink entrance crate - [#728](https://github.com/paritytech/cargo-contract/pull/728)

## [2.0.0-alpha.2] - 2022-09-02

Expand Down
221 changes: 164 additions & 57 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 crates/cargo-contract/src/cmd/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ fn exec_cargo_for_wasm_target(
args.push("--offline");
}
if build_mode == BuildMode::Debug {
args.push("--features=ink_env/ink-debug");
args.push("--features=ink/ink-debug");
} else {
args.push("-Zbuild-std-features=panic_immediate_abort");
}
Expand Down
6 changes: 3 additions & 3 deletions crates/cargo-contract/src/crate_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@ impl CrateMetadata {
.packages
.iter()
.find_map(|package| {
if package.name == "ink_lang" {
if package.name == "ink" {
Some(
Version::parse(&package.version.to_string())
.expect("Invalid ink_lang version string"),
.expect("Invalid ink crate version string"),
)
} else {
None
}
})
.ok_or_else(|| anyhow::anyhow!("No 'ink_lang' dependency found"))?;
.ok_or_else(|| anyhow::anyhow!("No 'ink' dependency found"))?;

let ExtraMetadata {
documentation,
Expand Down
Loading