[package] name = "anki" version = "0.1.0" build = "build.rs" edition = "2018" [target.'cfg(windows)'.dependencies] winapi = {version = "0.3", features = ["wincon"]} libc = "0.2" libc-stdhandle = "=0.1.0" [dependencies.pyembed] git = "https://github.com/ankitects/PyOxidizer.git" rev = "ffbfe66912335bc816074c7a08aed06e26bfca7f" default-features = false [dependencies.jemallocator] version = "0.3" optional = true [dependencies.mimalloc] version = "0.1" optional = true features = ["local_dynamic_tls", "override", "secure"] [dependencies.snmalloc-rs] version = "0.2" optional = true [build-dependencies] embed-resource = "1.6" [features] default = ["build-mode-standalone"] global-allocator-jemalloc = ["jemallocator"] global-allocator-mimalloc = ["mimalloc"] global-allocator-snmalloc = ["snmalloc-rs"] allocator-jemalloc = ["pyembed/allocator-jemalloc"] allocator-mimalloc = ["pyembed/allocator-mimalloc"] allocator-snmalloc = ["pyembed/allocator-snmalloc"] # Build this crate in isolation, without using PyOxidizer. build-mode-standalone = [] # Build this crate by executing a `pyoxidizer` executable to build # required artifacts. build-mode-pyoxidizer-exe = [] # Build this crate by reusing artifacts generated by `pyoxidizer` out-of-band. # In this mode, the PYOXIDIZER_ARTIFACT_DIR environment variable can refer # to the directory containing build artifacts produced by `pyoxidizer`. If not # set, OUT_DIR will be used. build-mode-prebuilt-artifacts = []