candid icon indicating copy to clipboard operation
candid copied to clipboard

Candid Library for the Internet Computer

Results 90 candid issues
Sort by recently updated
recently updated
newest added

**Is your feature request related to a problem? Please describe.** `Principal::from_text` is not `const` but there's many circumstances in which a principal constant is wanted in code. `Principal::from_slice` is `const`...

enhancement

**Overview** Introduce a span-aware AST that the parser now builds first so experimental [`candid-language-server`](https://github.com/perforate-org/candid-language-server) can attach precise locations to every declaration, field, and service item. The new `syntax::spanned` module defines...

external-contributor

After switching canister dependency from 0.10.14 to 0.10.16, when I call extract-candid, I am getting an error message: Error: Failed to call the function 'get_candid_pointer' Caused by: 0: error while...

I tried to run `didc bind -t rs-agent` with a custom template. The command ran successfully and generated the target code, but it seems to have used some default template,...

My minimal example for reproduction is the following: ``` decode(encode(vec{ record{ topic = opt variant{DaoCommunitySettings} }; record{ topic = opt variant{SnsFrameworkManagement} }})) vec { record { 338_645_423 = opt variant...

Crate: paste Version: 1.0.15 Warning: unmaintained Title: paste - no longer maintained Date: 2024-10-07 ID: RUSTSEC-2024-0436 URL: https://rustsec.org/advisories/RUSTSEC-2024-0436 Dependency tree: paste 1.0.15 └── candid 0.10.14 ├── ic-management-canister-types 0.3.1 │ └──...

The equality check performed at the beginning of subtype checking: https://github.com/dfinity/candid/blob/30c388671462aecdc4a3a9753d50dc2e8208c200/rust/candid/src/types/subtype.rs#L39-L41 should only do a cheap check for "physical" equality (using `ptr_eq` on anything non-primitive). Otherwise we do full traversals...

Nat & Int use `deserialize_any` in their de-serialization implementation: https://github.com/dfinity/candid/blob/master/rust/candid/src/types/number.rs#L155 https://github.com/dfinity/candid/blob/master/rust/candid/src/types/number.rs#L205 most binary encoding libraries do not support `deserialize_any`, example bincode: https://github.com/bincode-org/bincode postcard: https://github.com/jamesmunns/postcard Is using BigUint/BigInt the only way?

When running the application in the TEE, I encounter this exception due to stack size issues, and I wish to disable `check_recursion`. https://github.com/dfinity/candid/blob/master/rust/candid/src/de.rs#L281 ```json {"file":"agents/anda_bot/src/main.rs","level":"ERROR","line":92,"message":"bootstrap error: \"failed to create table...

Forwarding feedback from Motoko hackathon: Ability to make non-anonymous calls with Candid UI would be super useful for testing/debugging:

enhancement