Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/spacewasm_c_api/cbindgen.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ include_guard = "SPACEWASM_H"
tab_width = 4
documentation_style = "c"
cpp_compat = true
no_includes = true
sys_includes = ["stdbool.h", "stdint.h", "stddef.h"]
# Render Rust `usize`/`isize` as `size_t`/`ptrdiff_t` rather than `uintptr_t`.
usize_is_size_t = true
header = """/*
Expand Down
4 changes: 1 addition & 3 deletions crates/spacewasm_c_api/include/spacewasm.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
#ifndef SPACEWASM_H
#define SPACEWASM_H

#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <stddef.h>

/*
Operation status returned by most `spacewasm_*` functions.
Expand Down
Loading