Expand description
Bindings to the Internet Computer system API.
The raw bindings can be found in the sys
module. The functions in the crate root provide slightly higher-level
bindings in terms of slices instead of pointers/lengths, accurately typed pointers, etc., but otherwise does not adapt
the API. Where this is all that is needed for the functions to be safe, they are marked as safe, but function pointers
cannot be made safe and as such call_new
is still unsafe.
Any function ic0.foo
that would write to a user buffer has two versions, foo
which takes &mut [u8]
and
foo_uninit
which takes &mut [MaybeUninit<u8>]
.
Modules§
Functions§
- accept_
message - call_
cycles_ add128 - call_
data_ append - call_
new ⚠ - Safety
- call_
new_ oneway - call_
on_ ⚠cleanup - Safety
- call_
perform - Safety
- call_
with_ best_ effort_ response - canister_
cycle_ balance128 - canister_
liquid_ cycle_ balance128 - canister_
self_ copy - canister_
self_ size - canister_
status - canister_
version - certified_
data_ set - cost_
call - cost_
create_ canister - cost_
http_ request - cost_
sign_ with_ ecdsa - cost_
sign_ with_ schnorr - cost_
vetkd_ derive_ key - cycles_
burn128 - data_
certificate_ copy - data_
certificate_ copy_ uninit - Safety
- data_
certificate_ present - data_
certificate_ size - debug_
print - global_
timer_ set - in_
replicated_ execution - is_
controller - msg_
arg_ data_ copy - msg_
arg_ data_ copy_ uninit - Safety
- msg_
arg_ data_ size - msg_
caller_ copy - msg_
caller_ copy_ uninit - Safety
- msg_
caller_ size - msg_
cycles_ accept128 - msg_
cycles_ available128 - msg_
cycles_ refunded128 - msg_
deadline - msg_
method_ name_ copy - msg_
method_ name_ copy_ uninit - Safety
- msg_
method_ name_ size - msg_
reject - msg_
reject_ code - msg_
reject_ msg_ copy - msg_
reject_ msg_ copy_ uninit - Safety
- msg_
reject_ msg_ size - msg_
reply - msg_
reply_ data_ append - performance_
counter - root_
key_ copy - root_
key_ copy_ uninit - Safety
- root_
key_ size - stable64_
grow - stable64_
read - stable64_
read_ uninit - Safety
- stable64_
size - stable64_
write - subnet_
self_ copy - subnet_
self_ copy_ uninit - Safety
- subnet_
self_ size - time
- trap