Cargo

Account Management

Cargo.toml

This file defines the metadata, compilation settings, and dependencies for the Rust backend canister.


[package]

[package]
name = "backend"
version = "0.1.0"
edition = "2021"
  • name β€” The name of the package, in this case "backend".

  • version β€” Current version of the package (0.1.0).

  • edition β€” Rust edition being used (2021), which determines language features and compiler behavior.


Library Configuration

[lib]
crate-type = ["cdylib"]
path = "lib.rs"
  • crate-type = ["cdylib"] β€” Compiles the crate as a C-compatible dynamic library, required for Internet Computer (IC) canisters.

  • path β€” Specifies the entry point file for the library (lib.rs).


Dependencies

[dependencies]
candid = "0.10.13"
ic-cdk = "0.17.1"
ic-llm = "1.1.0"
  • candid β€” Library for encoding and decoding Candid, the interface description language for the IC.

  • ic-cdk β€” The Internet Computer Canister Development Kit, providing APIs to build canisters in Rust.

  • ic-llm β€” A library for integrating large language model (LLM) functionalities within IC canisters.

Last updated