Skip to main content

llama_cpp_wrapper_sources/
constants.rs

1pub const CPP_STANDARD: &str = "c++17";
2
3pub const FAULT_INJECTION_DEFINE: &str = "LLAMA_RS_FAULT_INJECTION";
4
5pub const GSL_INCLUDE_DIR: &str = "GSL/include";
6
7pub const LLAMA_CPP_INCLUDE_DIRS: &[&str] = &[
8    "common",
9    "include",
10    "ggml/include",
11    "vendor",
12    "tools/mtmd",
13    "tools/server",
14];
15
16pub const WRAPPER_HEADERS: &[&str] = &[
17    "wrapper.h",
18    "wrapper_batch.h",
19    "wrapper_chat_session.h",
20    "wrapper_chat_templates.h",
21    "wrapper_chat_templates_handle.h",
22    "wrapper_common.h",
23    "wrapper_context.h",
24    "wrapper_decision.h",
25    "wrapper_decision_model.h",
26    "wrapper_fault_injection.h",
27    "wrapper_fit.h",
28    "wrapper_gbnf.h",
29    "wrapper_model_capabilities.h",
30    "wrapper_mtmd.h",
31    "wrapper_parsed_chat.h",
32    "wrapper_parsed_chat_handle.h",
33    "wrapper_report_current_exception.h",
34    "wrapper_sampler_init.h",
35    "wrapper_state.h",
36    "wrapper_utils.h",
37];
38
39pub const WRAPPER_INCLUDE_DIRS: &[&str] = &["."];
40
41pub const WRAPPER_SOURCES: &[&str] = &[
42    "wrapper_batch.cpp",
43    "wrapper_chat_session.cpp",
44    "wrapper_chat_templates.cpp",
45    "wrapper_common.cpp",
46    "wrapper_context.cpp",
47    "wrapper_decision.cpp",
48    "wrapper_decision_model.cpp",
49    "wrapper_fault_injection.cpp",
50    "wrapper_fit.cpp",
51    "wrapper_gbnf.cpp",
52    "wrapper_model_capabilities.cpp",
53    "wrapper_mtmd.cpp",
54    "wrapper_parsed_chat.cpp",
55    "wrapper_sampler_init.cpp",
56    "wrapper_state.cpp",
57];
58
59pub const VENDORED_SOURCES: &[&str] = &[
60    "tools/server/server-common.cpp",
61    "tools/server/server-decision.cpp",
62];