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

chore: Update dependencies in Cargo.toml files #1263

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
9 changes: 3 additions & 6 deletions examples/factory-contract/high-level/build.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
use near_workspaces::cargo_near_build;
dj8yfo marked this conversation as resolved.
Show resolved Hide resolved
use std::str::FromStr;

use cargo_near_build::BuildOpts;
use cargo_near_build::{bon, camino, extended};

fn main() -> Result<(), Box<dyn std::error::Error + 'static>> {
// directory of target `status-message` sub-contract's crate
let workdir = "../../status-message";
// unix path to target `status-message` sub-contract's crate from root of the repo
let nep330_contract_path = "examples/status-message";

let manifest = camino::Utf8PathBuf::from_str(workdir)
.expect("pathbuf from str")
.join("Cargo.toml");
let manifest =
camino::Utf8PathBuf::from_str(workdir).expect("pathbuf from str").join("Cargo.toml");

let build_opts = BuildOpts::builder()
.manifest_path(manifest)
Expand Down
3 changes: 1 addition & 2 deletions examples/factory-contract/low-level/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::str::FromStr;

use cargo_near_build::BuildOpts;
use cargo_near_build::{bon, camino, extended};
use near_workspaces::cargo_near_build;

fn main() -> Result<(), Box<dyn std::error::Error + 'static>> {
// directory of target `status-message` sub-contract's crate
Expand Down
1 change: 0 additions & 1 deletion examples/fungible-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ anyhow = "1.0"
near-sdk = { path = "../../near-sdk", features = ["unit-testing"] }
tokio = { version = "1.14", features = ["full"] }
near-workspaces = { version = "0.15", features = ["unstable"] }
cargo-near-build = "0.3.1"
rstest = "0.23.0"

[profile.release]
Expand Down
1 change: 1 addition & 0 deletions examples/fungible-token/tests/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use near_workspaces::operations::Function;
use near_workspaces::result::ValueOrReceiptId;
use near_workspaces::{types::NearToken, Account, AccountId, Contract};
use rstest::{fixture, rstest};
use near_workspaces::cargo_near_build;

const ONE_YOCTO: NearToken = NearToken::from_yoctonear(1);

Expand Down
1 change: 0 additions & 1 deletion examples/lockable-fungible-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ anyhow = "1.0"
tokio = { version = "1.14", features = ["full"] }
near-sdk = { path = "../../near-sdk", features = ["unit-testing"] }
near-workspaces = { version = "0.15", features = ["unstable"] }
cargo-near-build = "0.3.1"
rstest = "0.23.0"

[profile.release]
Expand Down
1 change: 1 addition & 0 deletions examples/lockable-fungible-token/tests/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::str::FromStr;
use near_sdk::json_types::U128;
use near_workspaces::{types::NearToken, Account, Contract};
use rstest::{fixture, rstest};
use near_workspaces::cargo_near_build;

#[fixture]
fn initial_balance() -> U128 {
Expand Down
1 change: 0 additions & 1 deletion examples/non-fungible-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ near-sdk = { path = "../../near-sdk", features = ["unit-testing"] }
tokio = { version = "1.14", features = ["full"] }
near-workspaces = { version = "0.15", features = ["unstable"] }
rstest = "0.23.0"
cargo-near-build = "0.3.1"

[profile.release]
codegen-units = 1
Expand Down
2 changes: 1 addition & 1 deletion examples/non-fungible-token/tests/workspaces/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use near_contract_standards::non_fungible_token::TokenId;
use near_workspaces::types::NearToken;
use near_workspaces::{Account, Contract};
use rstest::fixture;

use near_workspaces::cargo_near_build;
pub const TOKEN_ID: &str = "0";

pub async fn helper_mint(
Expand Down
Loading