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