1pub use seq_core::arena;
10pub use seq_core::error;
11pub use seq_core::memory_stats;
12pub use seq_core::seqstring;
13pub use seq_core::son;
14pub use seq_core::stack;
15pub use seq_core::tagged_stack;
16pub use seq_core::value;
17
18pub mod args;
20pub mod arithmetic;
21pub mod channel;
22pub mod closures;
23pub mod cond;
24pub mod diagnostics;
25pub mod encoding;
26pub mod file;
27pub mod float_ops;
28pub mod io;
29pub mod list_ops;
30pub mod map_ops;
31pub mod os;
32pub mod quotations;
33pub mod report;
34pub mod scheduler;
35pub mod serialize;
36pub mod signal;
37pub mod string_ops;
38pub mod tcp;
39pub mod tcp_test;
40pub mod terminal;
41pub mod test;
42pub mod time_ops;
43pub mod variant_ops;
44pub mod watchdog;
45pub mod weave;
46
47#[cfg(not(feature = "diagnostics"))]
48pub mod report_stub;
49
50#[cfg(feature = "crypto")]
52pub mod crypto;
53#[cfg(not(feature = "crypto"))]
54pub mod crypto_stub;
55
56#[cfg(feature = "http")]
57pub mod http_client;
58#[cfg(not(feature = "http"))]
59pub mod http_stub;
60
61#[cfg(feature = "regex")]
62pub mod regex;
63#[cfg(not(feature = "regex"))]
64pub mod regex_stub;
65
66#[cfg(feature = "compression")]
67pub mod compress;
68#[cfg(not(feature = "compression"))]
69pub mod compress_stub;
70
71pub use seq_core::{ChannelData, MapKey, Value, VariantData, WeaveChannelData, WeaveMessage};
73pub use seq_core::{
74 DISC_BOOL, DISC_CHANNEL, DISC_CLOSURE, DISC_FLOAT, DISC_INT, DISC_MAP, DISC_QUOTATION,
75 DISC_STRING, DISC_SYMBOL, DISC_VARIANT, DISC_WEAVECTX, Stack, alloc_stack, alloc_test_stack,
76 clone_stack, clone_stack_segment, clone_stack_value, clone_value, drop_op, drop_stack_value,
77 drop_top, dup, nip, over, peek, peek_sv, pick_op, pop, pop_sv, push, push_sv, push_value, roll,
78 rot, set_stack_base, stack_dump, stack_value_to_value, swap, tuck, two_dup,
79 value_to_stack_value,
80};
81
82pub use seq_core::{son_dump, son_dump_pretty};
84
85pub use seq_core::{
87 clear_error, clear_runtime_error, get_error, has_error, has_runtime_error, set_runtime_error,
88 take_error, take_runtime_error,
89};
90
91pub use serialize::{SerializeError, TypedMapKey, TypedValue, ValueSerialize};
93
94pub use arithmetic::{
96 patch_seq_add as add, patch_seq_divide as divide, patch_seq_eq as eq, patch_seq_gt as gt,
97 patch_seq_gte as gte, patch_seq_lt as lt, patch_seq_lte as lte, patch_seq_multiply as multiply,
98 patch_seq_neq as neq, patch_seq_push_bool as push_bool, patch_seq_push_int as push_int,
99 patch_seq_subtract as subtract,
100};
101
102pub use float_ops::{
104 patch_seq_f_add as f_add, patch_seq_f_divide as f_divide, patch_seq_f_eq as f_eq,
105 patch_seq_f_gt as f_gt, patch_seq_f_gte as f_gte, patch_seq_f_lt as f_lt,
106 patch_seq_f_lte as f_lte, patch_seq_f_multiply as f_multiply, patch_seq_f_neq as f_neq,
107 patch_seq_f_subtract as f_subtract, patch_seq_float_to_int as float_to_int,
108 patch_seq_float_to_string as float_to_string, patch_seq_int_to_float as int_to_float,
109 patch_seq_push_float as push_float,
110};
111
112pub use io::{
114 patch_seq_exit_op as exit_op, patch_seq_push_interned_symbol as push_interned_symbol,
115 patch_seq_push_string as push_string, patch_seq_push_symbol as push_symbol,
116 patch_seq_read_line as read_line, patch_seq_read_line_plus as read_line_plus,
117 patch_seq_read_n as read_n, patch_seq_string_to_symbol as string_to_symbol,
118 patch_seq_symbol_to_string as symbol_to_string, patch_seq_write_line as write_line,
119};
120
121pub use scheduler::{
123 patch_seq_maybe_yield as maybe_yield, patch_seq_scheduler_init as scheduler_init,
124 patch_seq_scheduler_run as scheduler_run, patch_seq_scheduler_shutdown as scheduler_shutdown,
125 patch_seq_spawn_strand as spawn_strand, patch_seq_strand_spawn as strand_spawn,
126 patch_seq_wait_all_strands as wait_all_strands, patch_seq_yield_strand as yield_strand,
127};
128
129pub use channel::{
132 patch_seq_chan_receive as receive, patch_seq_chan_send as send,
133 patch_seq_close_channel as close_channel, patch_seq_make_channel as make_channel,
134};
135
136pub use weave::{
138 patch_seq_resume as weave_resume, patch_seq_weave as weave_make,
139 patch_seq_weave_cancel as weave_cancel, patch_seq_yield as weave_yield,
140};
141
142pub use io::patch_seq_int_to_string as int_to_string;
144pub use string_ops::{
145 patch_seq_json_escape as json_escape, patch_seq_string_chomp as string_chomp,
146 patch_seq_string_concat as string_concat, patch_seq_string_contains as string_contains,
147 patch_seq_string_empty as string_empty, patch_seq_string_length as string_length,
148 patch_seq_string_split as string_split, patch_seq_string_starts_with as string_starts_with,
149 patch_seq_string_to_int as string_to_int, patch_seq_string_to_lower as string_to_lower,
150 patch_seq_string_to_upper as string_to_upper, patch_seq_string_trim as string_trim,
151};
152
153pub use encoding::{
155 patch_seq_base64_decode as base64_decode, patch_seq_base64_encode as base64_encode,
156 patch_seq_base64url_decode as base64url_decode, patch_seq_base64url_encode as base64url_encode,
157 patch_seq_hex_decode as hex_decode, patch_seq_hex_encode as hex_encode,
158};
159
160#[cfg(feature = "crypto")]
162pub use crypto::{
163 patch_seq_constant_time_eq as constant_time_eq,
164 patch_seq_crypto_aes_gcm_decrypt as crypto_aes_gcm_decrypt,
165 patch_seq_crypto_aes_gcm_encrypt as crypto_aes_gcm_encrypt,
166 patch_seq_crypto_ed25519_keypair as crypto_ed25519_keypair,
167 patch_seq_crypto_ed25519_sign as crypto_ed25519_sign,
168 patch_seq_crypto_ed25519_verify as crypto_ed25519_verify,
169 patch_seq_crypto_pbkdf2_sha256 as crypto_pbkdf2_sha256, patch_seq_hmac_sha256 as hmac_sha256,
170 patch_seq_random_bytes as random_bytes, patch_seq_random_int as random_int,
171 patch_seq_sha256 as sha256, patch_seq_uuid4 as uuid4,
172};
173#[cfg(not(feature = "crypto"))]
174pub use crypto_stub::{
175 patch_seq_constant_time_eq as constant_time_eq,
176 patch_seq_crypto_aes_gcm_decrypt as crypto_aes_gcm_decrypt,
177 patch_seq_crypto_aes_gcm_encrypt as crypto_aes_gcm_encrypt,
178 patch_seq_crypto_ed25519_keypair as crypto_ed25519_keypair,
179 patch_seq_crypto_ed25519_sign as crypto_ed25519_sign,
180 patch_seq_crypto_ed25519_verify as crypto_ed25519_verify,
181 patch_seq_crypto_pbkdf2_sha256 as crypto_pbkdf2_sha256, patch_seq_hmac_sha256 as hmac_sha256,
182 patch_seq_random_bytes as random_bytes, patch_seq_random_int as random_int,
183 patch_seq_sha256 as sha256, patch_seq_uuid4 as uuid4,
184};
185
186#[cfg(feature = "regex")]
188pub use regex::{
189 patch_seq_regex_captures as regex_captures, patch_seq_regex_find as regex_find,
190 patch_seq_regex_find_all as regex_find_all, patch_seq_regex_match as regex_match,
191 patch_seq_regex_replace as regex_replace, patch_seq_regex_replace_all as regex_replace_all,
192 patch_seq_regex_split as regex_split, patch_seq_regex_valid as regex_valid,
193};
194#[cfg(not(feature = "regex"))]
195pub use regex_stub::{
196 patch_seq_regex_captures as regex_captures, patch_seq_regex_find as regex_find,
197 patch_seq_regex_find_all as regex_find_all, patch_seq_regex_match as regex_match,
198 patch_seq_regex_replace as regex_replace, patch_seq_regex_replace_all as regex_replace_all,
199 patch_seq_regex_split as regex_split, patch_seq_regex_valid as regex_valid,
200};
201
202#[cfg(feature = "compression")]
204pub use compress::{
205 patch_seq_compress_gunzip as compress_gunzip, patch_seq_compress_gzip as compress_gzip,
206 patch_seq_compress_gzip_level as compress_gzip_level,
207 patch_seq_compress_unzstd as compress_unzstd, patch_seq_compress_zstd as compress_zstd,
208 patch_seq_compress_zstd_level as compress_zstd_level,
209};
210#[cfg(not(feature = "compression"))]
211pub use compress_stub::{
212 patch_seq_compress_gunzip as compress_gunzip, patch_seq_compress_gzip as compress_gzip,
213 patch_seq_compress_gzip_level as compress_gzip_level,
214 patch_seq_compress_unzstd as compress_unzstd, patch_seq_compress_zstd as compress_zstd,
215 patch_seq_compress_zstd_level as compress_zstd_level,
216};
217
218pub use quotations::{
220 patch_seq_call as call, patch_seq_peek_is_quotation as peek_is_quotation,
221 patch_seq_peek_quotation_fn_ptr as peek_quotation_fn_ptr,
222 patch_seq_push_quotation as push_quotation, patch_seq_spawn as spawn,
223};
224
225pub use closures::{
227 patch_seq_create_env as create_env, patch_seq_env_get as env_get,
228 patch_seq_env_get_int as env_get_int, patch_seq_env_set as env_set,
229 patch_seq_make_closure as make_closure, patch_seq_push_closure as push_closure,
230};
231
232pub use cond::patch_seq_cond as cond;
234
235pub use tcp::{
237 patch_seq_tcp_accept as tcp_accept, patch_seq_tcp_close as tcp_close,
238 patch_seq_tcp_listen as tcp_listen, patch_seq_tcp_read as tcp_read,
239 patch_seq_tcp_write as tcp_write,
240};
241
242pub use os::{
244 patch_seq_current_dir as current_dir, patch_seq_exit as exit, patch_seq_getenv as getenv,
245 patch_seq_home_dir as home_dir, patch_seq_os_arch as os_arch, patch_seq_os_name as os_name,
246 patch_seq_path_exists as path_exists, patch_seq_path_filename as path_filename,
247 patch_seq_path_is_dir as path_is_dir, patch_seq_path_is_file as path_is_file,
248 patch_seq_path_join as path_join, patch_seq_path_parent as path_parent,
249};
250
251pub use variant_ops::{
253 patch_seq_make_variant_0 as make_variant_0, patch_seq_make_variant_1 as make_variant_1,
254 patch_seq_make_variant_2 as make_variant_2, patch_seq_make_variant_3 as make_variant_3,
255 patch_seq_make_variant_4 as make_variant_4, patch_seq_make_variant_5 as make_variant_5,
256 patch_seq_make_variant_6 as make_variant_6, patch_seq_make_variant_7 as make_variant_7,
257 patch_seq_make_variant_8 as make_variant_8, patch_seq_make_variant_9 as make_variant_9,
258 patch_seq_make_variant_10 as make_variant_10, patch_seq_make_variant_11 as make_variant_11,
259 patch_seq_make_variant_12 as make_variant_12, patch_seq_unpack_variant as unpack_variant,
260 patch_seq_variant_field_at as variant_field_at,
261 patch_seq_variant_field_count as variant_field_count, patch_seq_variant_tag as variant_tag,
262};
263
264pub use args::{
266 patch_seq_arg_at as arg_at, patch_seq_arg_count as arg_count, patch_seq_args_init as args_init,
267};
268
269pub use file::{
271 patch_seq_file_exists as file_exists,
272 patch_seq_file_for_each_line_plus as file_for_each_line_plus,
273 patch_seq_file_slurp as file_slurp,
274};
275
276pub use list_ops::{
278 patch_seq_list_each as list_each, patch_seq_list_empty as list_empty,
279 patch_seq_list_filter as list_filter, patch_seq_list_fold as list_fold,
280 patch_seq_list_get as list_get, patch_seq_list_length as list_length,
281 patch_seq_list_make as list_make, patch_seq_list_map as list_map,
282 patch_seq_list_push as list_push, patch_seq_list_set as list_set,
283};
284
285pub use map_ops::{
287 patch_seq_make_map as make_map, patch_seq_map_empty as map_empty, patch_seq_map_get as map_get,
288 patch_seq_map_has as map_has, patch_seq_map_keys as map_keys,
289 patch_seq_map_remove as map_remove, patch_seq_map_set as map_set,
290 patch_seq_map_size as map_size, patch_seq_map_values as map_values,
291};
292
293pub use test::{
295 patch_seq_test_assert as test_assert, patch_seq_test_assert_eq as test_assert_eq,
296 patch_seq_test_assert_eq_str as test_assert_eq_str,
297 patch_seq_test_assert_not as test_assert_not, patch_seq_test_fail as test_fail,
298 patch_seq_test_fail_count as test_fail_count, patch_seq_test_finish as test_finish,
299 patch_seq_test_has_failures as test_has_failures, patch_seq_test_init as test_init,
300 patch_seq_test_pass_count as test_pass_count,
301};
302
303pub use time_ops::{
305 patch_seq_time_nanos as time_nanos, patch_seq_time_now as time_now,
306 patch_seq_time_sleep_ms as time_sleep_ms,
307};
308
309pub use terminal::{
311 patch_seq_terminal_flush as terminal_flush, patch_seq_terminal_height as terminal_height,
312 patch_seq_terminal_raw_mode as terminal_raw_mode,
313 patch_seq_terminal_read_char as terminal_read_char,
314 patch_seq_terminal_read_char_nonblock as terminal_read_char_nonblock,
315 patch_seq_terminal_width as terminal_width,
316};
317
318#[cfg(feature = "http")]
320pub use http_client::{
321 patch_seq_http_delete as http_delete, patch_seq_http_get as http_get,
322 patch_seq_http_post as http_post, patch_seq_http_put as http_put,
323};
324#[cfg(not(feature = "http"))]
325pub use http_stub::{
326 patch_seq_http_delete as http_delete, patch_seq_http_get as http_get,
327 patch_seq_http_post as http_post, patch_seq_http_put as http_put,
328};