viam-rust-utils 0.4.3

Utilities designed for use with Viamrobotics's SDKs
Documentation
language = "C"


############## Options for Wrapping the Contents of the Header #################

pragma_once = true
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
cpp_compat = true


############################ Code Style Options ################################

braces = "SameLine"
line_length = 100
tab_width = 2
documentation = true
documentation_style = "auto"
documentation_length = "full"
line_endings = "LF" # also "CR", "CRLF", "Native"


############################# Codegen Options ##################################


[export.rename]
# mangled nalgebra type outputs, mapped to a prefixed snake case variant
"ArrayStorage_f64__3__1" = "nalgebra_array_storage_f64__3__1"
"Matrix_f64__u3__u1__array_storage_f64_3_1" = "nalgebra_matrix_f64_3_1"
"Vector3_f64" = "nalgebra_vector3_f64"
"ArrayStorage_f64__4__1" = "nalgebra_array_storage_f64__4__1"
"Matrix_f64__u4__u1__array_storage_f64_4_1" = "nalgebra_matrix_f64_4_1"
"Vector4_f64" = "nalgebra_vector4_f64"
"Quaternion_f64" = "nalgebra_quaternion_f64"
"Unit_matrix_f64_u3_u1_array_storage_f64_3_1" = "nalgebra_unit_matrix_f64_3_1"
"UnitVector3_f64" = "nalgebra_unit_vector3_f64"
"Rotation_f64__3" = "nalgebra_rotation_f64_3"
"Matrix_f64__const_3__const_3__array_storage_f64_3_3" = "nalgebra_matrix_f64_3_3"
"ArrayStorage_f64__3__3" = "nalgebra_array_storage_f64__3__3"
"SMatrix_f64__3__3" = "nalgebra_smatrix_f64_3_3"
"Rotation3_f64" = "nalgebra_rotation3_f64"

# mangled viam type outputs, mapped to a prefixed snak case variant
"DialFfi" = "viam_dial_ffi"
"AxisAngle" = "viam_axis_angle"
"EulerAngles" = "viam_euler_angles"
"OrientationVector" = "viam_orientation_vector"


[export.mangle]
rename_types = "snake_case"
#remove_underscores = true


[fn]
deprecated = "/// @deprecated please use `viam_`-prefixed function instead"

[struct]
rename_fields = "SnakeCase"
rename_associated_constant = "SnakeCase"

[const]
allow_static_const = true
allow_constexpr = false
sort_by = "Name"


[macro_expansion]
bitflags = false


############## Options for How Your Rust library Should Be Parsed ##############

[parse]
parse_deps = true
include = ["nalgebra"]
exclude = []
clean = false
extra_bindings = []


[parse.expand]
crates = []
all_features = false
default_features = true
features = []