Cargo Features

[dependencies]
geoarrow-wasm = { version = "0.1.0", default-features = false, features = ["geodesy", "debug", "wee_alloc"] }
default = console_error_panic_hook

It appears that adding console_error_panic_hook only adds 4kb of size (before gzipping) so for now to make debugging easier we'll include it as a default feature

geodesy

Enables geodesy ^0.10, geodesy of geoarrow2 ^0.0.1

Affects geoarrow-wasm::reproject

debug = console_error_panic_hook

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

console_error_panic_hook default debug?

Enables console_error_panic_hook

The console_error_panic_hook crate provides better debugging of panics by logging them with console.error. This is great for development, but requires all the std::fmt and std::panicking infrastructure, so isn't great for code size when deploying.

Affects utils::set_panic_hook

wee_alloc implicit feature

Enables wee_alloc

wee_alloc is a tiny allocator for wasm that is only ~1K in code size compared to the default allocator's ~10K. It is slower than the default allocator, however.