Cargo Features

rust-sc2 has no features set by default.

[dependencies]
rust-sc2 = { version = "1.1.2", features = ["protoc", "enemies_cache", "rayon", "parking_lot", "serde"] }
protoc

Enables protoc-rust of sc2-proto

enemies_cache

Affects units::AllUnits.cached

Features from optional dependencies

rayon implicit feature

Enables rayon

rayon:

Simple work-stealing parallelism for Rust

Affects distance::rayon, units::rayon

parking_lot implicit feature

Enables parking_lot ^0.11.0

parking_lot:

More compact and efficient implementations of the standard synchronization primitives

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework