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