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