mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
* initial commit # Conflicts: # Cargo.toml * implemented more `DataResult` methods * finished data result struct * fixed clippy errors * implemented `map_like` and more `dynamic_ops` methods * finished most other `DynamicOps` methods * Fixed doc in get_bytes * added encoder and decoder files * fixed some stuff and added primitive codecs * added some primitive codecs (has errors for now) * changed the "stream" ops methods * reworked types of the coders and codecs, added list codecs * added JSON ops * fixed list codecs, added some doc test examples in `JsonOps` * added lazy codecs * added map encoders, decoders and struct builders * actually added mapdecoder * added encoder and decoder transformations * fixed encoder and decoder transformations and added transformation functions and range codecs * added field encoders and decoders and separated range codecs * added field encoders and decoders and separated range codecs * added BaseMapCodec and SimpleMapCodec * added struct codecs and moved tests * added `NbtOps`, unsigned number codec types, range codec tests, a struct test, detailed `Codec` documentation * added optional field map codecs, the validator function and reworked struct builder functions * added unbounded map and struct codec tests and reworked validated codecs * did some visibility refactoring * fixed some stuff and renamed unsigned number codecs * fixed formatting * fixed docs to reflect changes on renaming unsigned number codecs * fixed validated test * fixed doctest * moved base_map_codec and fixed docs about codecs * fixed some mistakes in the code * fixed some more mistakes in the code and converted some `DataResult::error` calls to `DataResult::partial_error` * fixed formatting * fixed some incorrect docs * removed `OnceLock`s in `MapCodec`s so they can be used more easily * fixed transformer codec descriptions, added more `NbtOps` tests and fixed some `NbtOps` list methods * fixed doctest * added a fourth specific `NbtOps` test for byte buffers (`ByteArray`s in NBT) * fixed grammar mistake * log messages for discarded keys in `create_map` * use the `tracing` crate for logging * added a method to allow creating a field using a `MapCodec` reference * bifurcated `MapCodecCodec`s as well * removed imports only for documentation and replaced them with intra-doc links * added additional docs to `optional_field_with_default` and `lenient_optional_field_with_default` Codec methods for additional details on encoding * renamed crate to `pumpkin-codecs` so that data fixing can be placed somewhere else not frequently used * fixed some more errors and reworked `nbt_ops`'s `ListCollector` to be like 1.21.11, also allows &str in `DataResult`'s creation methods * fixed invalid nbt tag for test * reverted wrapping the tags for heterogeneous elements * renamed function parameter in `DataResult::apply_2` * removed unnecessary comment * fixed a few more issues * fixed formatting * fixed another mistake for `DataResult::add_message` * renamed `DataResult` factory methods to be more idiomatic and removed unnecessary `dyn` method * removed unnecessary `clone()` * updated Cargo.lock
185 lines
4.4 KiB
TOML
185 lines
4.4 KiB
TOML
[workspace]
|
|
resolver = "3"
|
|
members = [
|
|
"pumpkin-api-macros",
|
|
"pumpkin-config",
|
|
"pumpkin-util",
|
|
"pumpkin-inventory",
|
|
"pumpkin-macros/",
|
|
"pumpkin-protocol/",
|
|
"pumpkin-world",
|
|
"pumpkin/",
|
|
"pumpkin-data",
|
|
"pumpkin-plugin-api",
|
|
"pumpkin-codecs"
|
|
]
|
|
exclude = ["pumpkin-codegen"]
|
|
|
|
[workspace.lints.clippy]
|
|
# Groups
|
|
all = { level = "deny", priority = -1 }
|
|
nursery = { level = "deny", priority = -1 }
|
|
pedantic = { level = "deny", priority = -1 }
|
|
cargo = { level = "deny", priority = -1 }
|
|
|
|
if_then_some_else_none = "deny"
|
|
empty_enum_variants_with_brackets = "deny"
|
|
empty_structs_with_brackets = "deny"
|
|
separated_literal_suffix = "deny"
|
|
semicolon_outside_block = "deny"
|
|
redundant_test_prefix = "deny"
|
|
non_zero_suggestions = "deny"
|
|
dbg_macro = "deny"
|
|
rc_buffer = "deny"
|
|
verbose_file_reads = "deny"
|
|
string_lit_chars_any = "deny"
|
|
use_self = "deny"
|
|
useless_let_if_seq = "deny"
|
|
branches_sharing_code = "deny"
|
|
equatable_if_let = "deny"
|
|
option_if_let_else = "deny"
|
|
needless_pass_by_ref_mut = "deny"
|
|
needless_collect = "deny"
|
|
redundant_clone = "deny"
|
|
set_contains_or_insert = "deny"
|
|
significant_drop_in_scrutinee = "deny"
|
|
print_stdout = "deny"
|
|
print_stderr = "deny"
|
|
|
|
# Expected/Allowed
|
|
cargo_common_metadata = "allow"
|
|
cast_precision_loss = "allow"
|
|
multiple_crate_versions = "allow"
|
|
single_call_fn = "allow"
|
|
unreadable_literal = "allow"
|
|
many_single_char_names = "allow"
|
|
suboptimal_flops = "allow"
|
|
cast_lossless = "allow"
|
|
while_float = "allow"
|
|
or_fun_call = "allow"
|
|
significant_drop_tightening = "allow"
|
|
suspicious_operation_groupings = "allow"
|
|
literal_string_with_formatting_args = "allow"
|
|
future_not_send = "allow"
|
|
cast_sign_loss = "allow"
|
|
float_cmp = "allow"
|
|
cast_possible_truncation = "allow"
|
|
cast_possible_wrap = "allow"
|
|
missing_panics_doc = "allow"
|
|
missing_errors_doc = "allow"
|
|
module_name_repetitions = "allow"
|
|
struct_excessive_bools = "allow"
|
|
|
|
[workspace.package]
|
|
version = "0.1.0-dev+1.21.11"
|
|
edition = "2024"
|
|
rust-version = "1.94"
|
|
|
|
[profile.release]
|
|
lto = true
|
|
strip = "debuginfo"
|
|
codegen-units = 1
|
|
|
|
[profile.bench]
|
|
debug = true
|
|
|
|
[profile.profiling]
|
|
inherits = "release"
|
|
debug = true
|
|
strip = false
|
|
|
|
[workspace.dependencies]
|
|
tokio = { version = "1.50", default-features = false }
|
|
syn = { version = "2.0", default-features = false, features = ["printing"] }
|
|
|
|
|
|
thiserror = "2.0"
|
|
|
|
bytes = "1.11"
|
|
|
|
# Concurrency/Parallelism and Synchronization
|
|
futures = { version = "0.3", default-features = false, features = ["executor"] }
|
|
rayon = "1.11"
|
|
crossbeam = "0.8"
|
|
|
|
uuid = { version = "1.22", features = ["serde", "v3", "v4"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
|
|
tempfile = { version = "3.27.0", default-features = false }
|
|
proc-macro-error2 = "2"
|
|
aes = "0.8"
|
|
async-compression = "0.4.41"
|
|
base64 = "0.22.1"
|
|
bitflags = "2.11.0"
|
|
cesu8 = "1.1"
|
|
cfb8 = "0.8"
|
|
colored = "3.1"
|
|
console-subscriber = { version = "0.5.0", default-features = false }
|
|
crc-fast = "1.10.0"
|
|
criterion = { version = "0.8", default-features = false }
|
|
crossbeam-utils = "0.8.21"
|
|
crossfire = { version = "3.1.5", features = ["compat"] }
|
|
dashmap = "6.1"
|
|
ecdsa = "0.16.9"
|
|
enum_dispatch = "0.3.13"
|
|
flate2 = "1.1.9"
|
|
heck = "0.5"
|
|
hmac = "=0.13.0-rc.5"
|
|
indexmap = "2.13"
|
|
itertools = "0.14.0"
|
|
libloading = "0.9"
|
|
lru = "0.16.3"
|
|
lz4-java-wrc = "0.2.0"
|
|
md5 = "0.8"
|
|
num-bigint = "0.4"
|
|
num-derive = "0.4"
|
|
num-traits = "0.2"
|
|
num_cpus = "1.17.0"
|
|
p384 = "0.13.1"
|
|
phf = "0.13.1"
|
|
pkcs8 = "=0.11.0-rc.11"
|
|
proc-macro2 = "1.0"
|
|
pumpkin-codecs = { path = "pumpkin-codecs" }
|
|
pumpkin-config = { path = "pumpkin-config" }
|
|
pumpkin-data = { path = "pumpkin-data" }
|
|
pumpkin-inventory = { path = "pumpkin-inventory" }
|
|
pumpkin-macros = { path = "pumpkin-macros" }
|
|
pumpkin-nbt = { path = "pumpkin-nbt" }
|
|
pumpkin-protocol = { path = "pumpkin-protocol" }
|
|
pumpkin-util = { path = "pumpkin-util" }
|
|
pumpkin-world = { path = "pumpkin-world" }
|
|
quote = "1.0"
|
|
rand = "0.10.0"
|
|
rsa = "=0.10.0-rc.17"
|
|
rustc-hash = "2.1.1"
|
|
rustyline = "17.0.2"
|
|
ruzstd = "0.8.2"
|
|
serde_json5 = "0.2.1"
|
|
sha1 = "=0.11.0-rc.5"
|
|
sha2 = "=0.11.0-rc.5"
|
|
signature = "2.2.0"
|
|
tracing = "0.1.44"
|
|
tracing-subscriber = { version = "0.3.23", features = [
|
|
"env-filter",
|
|
"fmt",
|
|
"time",
|
|
] }
|
|
slotmap = "1.1"
|
|
take_mut = "0.2.2"
|
|
temp-dir = "0.2.0"
|
|
thread_local = "1.1.9"
|
|
time = "0.3"
|
|
arc-swap = "1.8"
|
|
tokio-util = "0.7.18"
|
|
toml = "1.0"
|
|
ureq = "3.2.0"
|
|
|
|
wasmtime = "42.0"
|
|
wasmtime-wasi = "42.0"
|
|
wit-bindgen = "0.53"
|
|
wasmparser = "0.245"
|
|
|
|
postcard = { version = "1.1", features = ["alloc"] }
|
|
tracing-serde-structured = "0.4"
|