update the dependencies
block in /src/{canister_name}/Cargo.toml
:
[dependencies]
candid = "0.9.9"
ic-cdk = "0.11.1"
serde = { version = "1", features = ["derive"] }
serde_json = "1.0"
ic-stable-structures = { git = "https://github.com/lwshang/stable-structures.git", branch = "lwshang/update_cdk"}
If you want to test your project locally, you can use the following commands:
# Running the docker icp_rust container
$ docker run -it icp_rust /bin/bach
```bash
# Starts the replica, running in the background
$ dfx start --background
# Deploys your canisters to the replica and generates your candid interface
$ dfx deploy