{"id":21599780,"url":"https://github.com/mujhtech/icp-rust-quiz-example","last_synced_at":"2025-07-01T05:36:41.238Z","repository":{"id":206350221,"uuid":"716425819","full_name":"Mujhtech/icp-rust-quiz-example","owner":"Mujhtech","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-13T11:37:07.000Z","size":20,"stargazers_count":0,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T01:11:22.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mujhtech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-09T05:31:18.000Z","updated_at":"2023-11-09T05:39:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"8df14ba3-4401-4ff1-884a-f41ec0d2ce67","html_url":"https://github.com/Mujhtech/icp-rust-quiz-example","commit_stats":null,"previous_names":["mujhtech/icp-rust-quiz-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mujhtech/icp-rust-quiz-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mujhtech%2Ficp-rust-quiz-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mujhtech%2Ficp-rust-quiz-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mujhtech%2Ficp-rust-quiz-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mujhtech%2Ficp-rust-quiz-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mujhtech","download_url":"https://codeload.github.com/Mujhtech/icp-rust-quiz-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mujhtech%2Ficp-rust-quiz-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262905132,"owners_count":23382508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T18:16:27.596Z","updated_at":"2025-07-01T05:36:41.226Z","avatar_url":"https://github.com/Mujhtech.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# icp_rust_message_board_contract\n\n### Requirements\n* rustc 1.64 or higher\n```bash\n$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh\n$ source \"$HOME/.cargo/env\"\n```\n* rust wasm32-unknown-unknown target\n```bash\n$ rustup target add wasm32-unknown-unknown\n```\n* candid-extractor\n```bash\n$ cargo install candid-extractor\n```\n* install `dfx`\n```bash\n$ DFX_VERSION=0.15.0 sh -ci \"$(curl -fsSL https://sdk.dfinity.org/install.sh)\"\n$ echo 'export PATH=\"$PATH:$HOME/bin\"' \u003e\u003e \"$HOME/.bashrc\"\n$ source ~/.bashrc\n$ dfx start --background\n```\n\nIf you want to start working on your project right away, you might want to try the following commands:\n\n```bash\n$ cd icp_rust_boilerplate/\n$ dfx help\n$ dfx canister --help\n```\n\n## Update dependencies\n\nupdate the `dependencies` block in `/src/{canister_name}/Cargo.toml`:\n```\n[dependencies]\ncandid = \"0.9.9\"\nic-cdk = \"0.11.1\"\nserde = { version = \"1\", features = [\"derive\"] }\nserde_json = \"1.0\"\nic-stable-structures = { git = \"https://github.com/lwshang/stable-structures.git\", branch = \"lwshang/update_cdk\"}\n```\n\n## did autogenerate\n\nAdd this script to the root directory of the project:\n```\nhttps://github.com/buildwithjuno/juno/blob/main/scripts/did.sh\n```\n\nUpdate line 16 with the name of your canister:\n```\nhttps://github.com/buildwithjuno/juno/blob/main/scripts/did.sh#L16\n```\n\nAfter this run this script to generate Candid.\nImportant note!\n\nYou should run this script each time you modify/add/remove exported functions of the canister.\nOtherwise, you'll have to modify the candid file manually.\n\nAlso, you can add package json with this content:\n```\n{\n    \"scripts\": {\n        \"generate\": \"./did.sh \u0026\u0026 dfx generate\",\n        \"gen-deploy\": \"./did.sh \u0026\u0026 dfx generate \u0026\u0026 dfx deploy -y\"\n      }\n}\n```\n\nand use commands `npm run generate` to generate candid or `npm run gen-deploy` to generate candid and to deploy a canister.\n\n## Running the project locally\n\nIf you want to test your project locally, you can use the following commands:\n\n```bash\n# Starts the replica, running in the background\n$ dfx start --background\n\n# Deploys your canisters to the replica and generates your candid interface\n$ dfx deploy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmujhtech%2Ficp-rust-quiz-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmujhtech%2Ficp-rust-quiz-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmujhtech%2Ficp-rust-quiz-example/lists"}