-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcbindgen.toml
More file actions
53 lines (42 loc) · 1.03 KB
/
cbindgen.toml
File metadata and controls
53 lines (42 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# cbindgen configuration for Flywheel C bindings
language = "C"
# Include only the ffi module
include_guard = "FLYWHEEL_H"
autogen_warning = "/* WARNING: This file is auto-generated by cbindgen. Do not edit. */"
# Generate documentation
documentation = true
documentation_style = "c99"
# Style settings
braces = "SameLine"
line_length = 100
tab_width = 4
# Type naming
style = "Both"
# Include version info
after_includes = """
#define FLYWHEEL_VERSION "0.1.0"
#define FLYWHEEL_VERSION_MAJOR 0
#define FLYWHEEL_VERSION_MINOR 1
#define FLYWHEEL_VERSION_PATCH 0
"""
[export]
include = [
"FlywheelResult",
"FlywheelEventType",
"FlywheelKeyEvent",
"FlywheelResizeEvent",
"FlywheelEvent",
]
[export.rename]
"FlywheelEngine" = "FlywheelEngine"
"FlywheelStream" = "FlywheelStream"
"FlywheelBuffer" = "FlywheelBuffer"
[fn]
# Rename pattern for FFI functions
rename_args = "SnakeCase"
[struct]
# Derive PartialEq for simple structs
derive_eq = true
[enum]
# Use simple integer representation
rename_variants = "ScreamingSnakeCase"