mirror of
https://github.com/luxfhe/torus.git
synced 2026-10-30 17:07:26 +00:00
The MLIR dialect, its conversion passes (TFHEToConcrete, ConcreteToCAPI, ConcreteToLLVM), the optimizer component, the compiler binary, the Rust crate and the program_info parameter file all still carried the upstream project's name. They now carry this one's. Two things deliberately keep the word, because in them it is not the name. mlir::OpTrait CRTP parameters mean "the derived type", so they are spelled Derived and OpTy — LLVM's other conventional spelling for the same idiom. concreteShape is a capnp field: renaming it would change the serialized protocol, and the prose describing it is ordinary English. This also repairs references the earlier partial rename left dangling: Security.cpp included concrete/curves.gen.h and the directory is torus/, torus-cpu.h included concrete-num_complex.h, the Torus dialect CMakeLists named ConcreteOps.td, and compiler/setup.py asked find_namespace_packages for a "concrete" package that no longer exists — so it built without the package it ships.
130 lines
2.6 KiB
TOML
130 lines
2.6 KiB
TOML
# This is a template cbindgen.toml file with all of the default values.
|
|
# Some values are commented out because their absence is the real default.
|
|
#
|
|
# See https://github.com/eqrion/cbindgen/blob/master/docs.md#cbindgentoml
|
|
# for detailed documentation of every option here.
|
|
|
|
|
|
language = "C"
|
|
|
|
|
|
############## Options for Wrapping the Contents of the Header #################
|
|
|
|
header = "// Copyright © 2022 LUX.\n// All rights reserved."
|
|
# trailer = "/* Text to put at the end of the generated file */"
|
|
include_guard = "TORUS_CPU_NOISE_MODEL_FFI_H"
|
|
# pragma_once = true
|
|
autogen_warning = "// Warning, this file is autogenerated by cbindgen. Do not modify this manually."
|
|
include_version = false
|
|
#namespace = "torus_cpu_ffi"
|
|
namespaces = []
|
|
using_namespaces = []
|
|
sys_includes = []
|
|
includes = []
|
|
no_includes = false
|
|
cpp_compat = true
|
|
after_includes = ""
|
|
|
|
|
|
############################ Code Style Options ################################
|
|
|
|
braces = "SameLine"
|
|
line_length = 100
|
|
tab_width = 2
|
|
documentation = false
|
|
documentation_style = "auto"
|
|
line_endings = "LF" # also "CR", "CRLF", "Native"
|
|
|
|
|
|
############################# Codegen Options ##################################
|
|
|
|
style = "both"
|
|
sort_by = "Name" # default for `fn.sort_by` and `const.sort_by`
|
|
usize_is_size_t = true
|
|
|
|
|
|
[defines]
|
|
# "target_os = freebsd" = "DEFINE_FREEBSD"
|
|
# "feature = serde" = "DEFINE_SERDE"
|
|
|
|
|
|
[export]
|
|
include = []
|
|
exclude = []
|
|
#prefix = "CAPI_"
|
|
item_types = []
|
|
renaming_overrides_prefixing = false
|
|
|
|
|
|
[export.rename]
|
|
|
|
|
|
[export.body]
|
|
|
|
|
|
[export.mangle]
|
|
|
|
|
|
[fn]
|
|
rename_args = "None"
|
|
# must_use = "MUST_USE_FUNC"
|
|
# no_return = "NO_RETURN"
|
|
# prefix = "START_FUNC"
|
|
# postfix = "END_FUNC"
|
|
args = "auto"
|
|
sort_by = "Name"
|
|
|
|
|
|
[struct]
|
|
rename_fields = "None"
|
|
# must_use = "MUST_USE_STRUCT"
|
|
derive_constructor = false
|
|
derive_eq = false
|
|
derive_neq = false
|
|
derive_lt = false
|
|
derive_lte = false
|
|
derive_gt = false
|
|
derive_gte = false
|
|
|
|
|
|
[enum]
|
|
rename_variants = "None"
|
|
# must_use = "MUST_USE_ENUM"
|
|
add_sentinel = false
|
|
prefix_with_name = false
|
|
derive_helper_methods = false
|
|
derive_const_casts = false
|
|
derive_mut_casts = false
|
|
# cast_assert_name = "ASSERT"
|
|
derive_tagged_enum_destructor = false
|
|
derive_tagged_enum_copy_constructor = false
|
|
enum_class = true
|
|
private_default_tagged_enum_constructor = false
|
|
|
|
|
|
[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 = ["torus-cpu"]
|
|
exclude = []
|
|
clean = false
|
|
extra_bindings = []
|
|
|
|
|
|
[parse.expand]
|
|
crates = []
|
|
all_features = false
|
|
default_features = true
|
|
features = []
|