-
Notifications
You must be signed in to change notification settings - Fork 93
/
cbindgen.toml
64 lines (55 loc) · 2.05 KB
/
cbindgen.toml
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
54
55
56
57
58
59
60
61
62
63
64
# The language to output bindings in
language = "C"
# An optional string of text to output between major sections of the generated
# file as a warning against manual editing
autogen_warning = "/* Don't modify this file manually. It is autogenerated by cbindgen. */"
# An optional name to use as an include guard
include_guard = "_TQUIC_H_"
# Whether to make a C header C++ compatible.
cpp_compat = true
# Include doc comments from Rust as documentation
documentation = true
# A list of headers to #include (with quotes)
includes = ["openssl/ssl.h", "tquic_def.h"]
[export]
exclude = ["MIN_CLIENT_INITIAL_LEN", "VINT_MAX"]
[export.rename]
"Config" = "quic_config_t"
"TlsConfig" = "quic_tls_config_t"
"SslCtx" = "SSL_CTX"
"Connection" = "quic_conn_t"
"ConnectionStats" = "quic_conn_stats_t"
"Endpoint" = "quic_endpoint_t"
"PacketOutSpec" = "quic_packet_out_spec_t"
"PacketInfo" = "quic_packet_info_t"
"PathAddress" = "quic_path_address_t"
"PathStats" = "quic_path_stats_t"
"FourTupleIter" = "quic_path_address_iter_t"
"Shutdown" = "quic_shutdown"
"TransportHandler" = "quic_transport_handler_t"
"TransportMethods" = "quic_transport_methods_t"
"TransportContext" = "quic_transport_context_t"
"PacketSendHandler" = "quic_packet_send_handler_t"
"PacketSendMethods" = "quic_packet_send_methods_t"
"PacketSendContext" = "quic_packet_send_context_t"
"TlsConfigSelectMethods" = "quic_tls_config_select_methods_t"
"TlsConfigSelectorContext" = "quic_tls_config_select_context_t"
"CongestionControlAlgorithm" = "quic_congestion_control_algorithm"
"MultipathAlgorithm" = "quic_multipath_algorithm"
"LevelFilter" = "quic_log_level"
"Http3Connection" = "http3_conn_t"
"Http3Config" = "http3_config_t"
"Http3Context" = "http3_context_t"
"Http3Handler" = "http3_handler_t"
"Http3Headers" = "http3_headers_t"
"Http3Methods" = "http3_methods_t"
"Http3Priority" = "http3_priority_t"
"Header" = "http3_header_t"
"iovec" = "struct iovec"
"sockaddr" = "struct sockaddr"
"sockaddr_storage" = "struct sockaddr_storage"
[enum]
rename_variants = "QualifiedScreamingSnakeCase"
[parse]
parse_deps = true
include = ["libc"]