[package]
edition = "2024"
name = "syncweb-core"
version = "0.1.1-alpha.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "delay-tolerant web surfing"
readme = "README.md"
keywords = [
"p2p",
"web",
"sync",
"iroh",
"offline",
]
categories = [
"network-programming",
"web-programming",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/chapmanjacobd/syncweb"
resolver = "2"
[lib]
name = "syncweb_core"
path = "src/lib.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "links_test"
path = "tests/links_test.rs"
[[test]]
name = "sort_test"
path = "tests/sort_test.rs"
[[bench]]
name = "core_benchmarks"
path = "benches/core_benchmarks.rs"
harness = false
[dependencies.async-compression]
version = "0.4"
features = [
"tokio",
"zstd",
]
[dependencies.async-recursion]
version = "1.1"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
[dependencies.base32]
version = "0.5"
[dependencies.blake3]
version = "1"
features = ["serde"]
[dependencies.bytes]
version = "1.12"
[dependencies.dashmap]
version = "6"
[dependencies.distributed-topic-tracker]
version = "0.3"
[dependencies.ed25519-dalek]
version = "3.0"
[dependencies.fs2]
version = "0.4"
[dependencies.globset]
version = "0.4"
[dependencies.hex]
version = "0.4"
[dependencies.hkdf]
version = "0.12"
[dependencies.hyper]
version = "1"
[dependencies.iroh]
version = "1.0"
features = ["test-utils"]
[dependencies.iroh-blobs]
version = "0.103"
[dependencies.iroh-docs]
version = "0.101"
[dependencies.iroh-gossip]
version = "0.101"
[dependencies.iroh-io]
version = "0.6"
[dependencies.iroh-mdns-address-lookup]
version = "0.4"
[dependencies.libc]
version = "0.2"
[dependencies.mime]
version = "0.3"
[dependencies.n0-future]
version = "0.3"
[dependencies.notify]
version = "8"
[dependencies.rand]
version = "0.10"
[dependencies.rayon]
version = "1"
[dependencies.regex]
version = "1"
[dependencies.rusqlite]
version = "0.40"
features = ["bundled"]
[dependencies.semver]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
"sync",
"time",
"fs",
"io-util",
"net",
"signal",
]
[dependencies.tokio-tungstenite]
version = "0.30"
[dependencies.tokio-util]
version = "0.7"
features = ["io"]
[dependencies.toml]
version = "1.1"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-appender]
version = "0.2"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"json",
"env-filter",
]
[dependencies.tracing-test]
version = "0.2"
[dependencies.uuid]
version = "1"
features = [
"v4",
"serde",
]
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.iroh]
version = "1.0"
features = ["test-utils"]
[lints.clippy]
allow_attributes = "deny"
arithmetic_side_effects = "deny"
as_conversions = "deny"
await_holding_lock = "deny"
cast_lossless = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cast_ptr_alignment = "deny"
cast_sign_loss = "deny"
char_lit_as_u8 = "deny"
checked_conversions = "deny"
cognitive_complexity = "deny"
collapsible_else_if = "allow"
dbg_macro = "deny"
debug_assert_with_mut_call = "deny"
doc_link_with_quotes = "deny"
doc_markdown = "deny"
else_if_without_else = "deny"
empty_enums = "deny"
empty_line_after_outer_attr = "deny"
empty_structs_with_brackets = "deny"
enum_glob_use = "deny"
exhaustive_enums = "deny"
exhaustive_structs = "deny"
exit = "deny"
expect_fun_call = "deny"
expect_used = "deny"
expl_impl_clone_on_copy = "deny"
explicit_deref_methods = "deny"
explicit_into_iter_loop = "deny"
fallible_impl_from = "deny"
filter_map_next = "deny"
flat_map_option = "deny"
float_arithmetic = "deny"
float_cmp = "deny"
float_cmp_const = "deny"
float_equality_without_abs = "deny"
fn_params_excessive_bools = "deny"
from_iter_instead_of_collect = "deny"
get_unwrap = "deny"
if_let_mutex = "deny"
if_then_some_else_none = "deny"
implicit_clone = "deny"
imprecise_flops = "deny"
indexing_slicing = "deny"
inefficient_to_string = "deny"
integer_division = "deny"
invalid_upcast_comparisons = "deny"
items_after_statements = "deny"
large_digit_groups = "deny"
large_stack_arrays = "deny"
large_types_passed_by_value = "deny"
let_unit_value = "deny"
linkedlist = "deny"
lossy_float_literal = "deny"
macro_use_imports = "deny"
manual_assert = "deny"
manual_ok_or = "deny"
manual_unwrap_or_default = "deny"
map_err_ignore = "deny"
map_flatten = "deny"
map_unwrap_or = "deny"
match_bool = "deny"
match_same_arms = "deny"
match_wild_err_arm = "deny"
match_wildcard_for_single_variants = "deny"
mem_forget = "deny"
missing_const_for_fn = "deny"
missing_docs_in_private_items = "allow"
missing_enforced_import_renames = "deny"
missing_errors_doc = "deny"
missing_panics_doc = "deny"
mod_module_files = "deny"
modulo_arithmetic = "deny"
multiple_crate_versions = "warn"
mut_mut = "deny"
mutex_integer = "deny"
needless_borrow = "deny"
needless_continue = "deny"
needless_for_each = "deny"
needless_parens_on_range_literals = "deny"
needless_raw_string_hashes = "deny"
option_if_let_else = "deny"
option_option = "deny"
panic = "deny"
panic_in_result_fn = "deny"
path_buf_push_overwrite = "deny"
print_stderr = "allow"
print_stdout = "allow"
ptr_as_ptr = "deny"
rc_mutex = "deny"
redundant_clone = "deny"
redundant_field_names = "deny"
redundant_type_annotations = "deny"
ref_option_ref = "deny"
rest_pat_in_fully_bound_structs = "deny"
same_functions_in_if_condition = "deny"
semicolon_if_nothing_returned = "deny"
shadow_reuse = "deny"
shadow_same = "deny"
shadow_unrelated = "deny"
similar_names = "deny"
single_match = "deny"
single_match_else = "deny"
string_add = "deny"
string_add_assign = "deny"
string_lit_as_bytes = "deny"
struct_excessive_bools = "allow"
suspicious_operation_groupings = "deny"
todo = "deny"
trait_duplication_in_bounds = "deny"
unchecked_time_subtraction = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unnested_or_patterns = "deny"
unreachable = "allow"
unseparated_literal_suffix = "deny"
unused_result_ok = "deny"
unused_self = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
use_debug = "allow"
use_self = "allow"
used_underscore_binding = "deny"
useless_attribute = "warn"
useless_let_if_seq = "deny"
useless_transmute = "deny"
verbose_file_reads = "deny"
wildcard_dependencies = "deny"
wildcard_enum_match_arm = "deny"
wildcard_imports = "deny"
zero_sized_map_values = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.cargo]
level = "deny"
priority = -1
[lints.clippy.complexity]
level = "deny"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.clippy.perf]
level = "deny"
priority = -1
[lints.rust]
missing_copy_implementations = "deny"
missing_debug_implementations = "allow"
non_ascii_idents = "deny"
noop_method_call = "deny"
unsafe_code = "allow"
unused_crate_dependencies = "allow"
unused_extern_crates = "deny"
unused_import_braces = "deny"
[lints.rust.future_incompatible]
level = "deny"
priority = -1
[lints.rust.keyword_idents]
level = "deny"
priority = -1
[lints.rust.nonstandard_style]
level = "deny"
priority = -1
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1