# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "avian2d" version = "0.1.2" authors = ["Joona Aalto "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "An ECS-driven physics engine for the Bevy game engine" documentation = "https://docs.rs/avian2d" readme = "README.md" keywords = [ "gamedev", "physics", "simulation", "bevy", ] categories = [ "game-development", "science", "simulation", ] license = "MIT OR Apache-2.0" repository = "https://github.com/Jondolf/avian" [lib] name = "avian2d" path = "src/lib.rs" bench = false required-features = ["2d"] [[example]] name = "ccd" path = "examples/ccd.rs" required-features = [ "2d", "default-collider", ] [[example]] name = "chain_2d" path = "examples/chain_2d.rs" required-features = [ "2d", "default-collider", ] [[example]] name = "collision_layers" path = "examples/collision_layers.rs" required-features = [ "2d", "default-collider", ] [[example]] name = "custom_collider" path = "examples/custom_collider.rs" required-features = ["2d"] [[example]] name = "distance_joint_2d" path = "examples/distance_joint_2d.rs" [[example]] name = "dynamic_character_2d" path = "examples/dynamic_character_2d/main.rs" required-features = [ "2d", "default-collider", ] [[example]] name = "fixed_joint_2d" path = "examples/fixed_joint_2d.rs" required-features = [ "2d", "default-collider", ] [[example]] name = "kinematic_character_2d" path = "examples/kinematic_character_2d/main.rs" required-features = [ "2d", "default-collider", ] [[example]] name = "many_shapes" path = "examples/many_shapes.rs" [[example]] name = "move_marbles" path = "examples/move_marbles.rs" required-features = [ "2d", "default-collider", ] [[example]] name = "one_way_platform_2d" path = "examples/one_way_platform_2d.rs" [[example]] name = "prismatic_joint_2d" path = "examples/prismatic_joint_2d.rs" required-features = [ "2d", "default-collider", ] [[example]] name = "ray_caster" path = "examples/ray_caster.rs" required-features = [ "2d", "default-collider", ] [[example]] name = "revolute_joint_2d" path = "examples/revolute_joint_2d.rs" required-features = [ "2d", "default-collider", ] [[example]] name = "sensor" path = "examples/sensor.rs" [[bench]] name = "pyramid" path = "benches/pyramid.rs" harness = false required-features = [ "2d", "default-collider", ] [dependencies.avian_derive] version = "0.1" [dependencies.bevy] version = "0.14" default-features = false [dependencies.bevy_math] version = "0.14" [dependencies.bitflags] version = "2.5.0" [dependencies.derive_more] version = "0.99" [dependencies.fxhash] version = "0.2.1" [dependencies.indexmap] version = "2.0.0" [dependencies.itertools] version = "0.13" [dependencies.libm] version = "0.2" optional = true [dependencies.nalgebra] version = "0.32.6" features = ["convert-glam027"] optional = true [dependencies.parry2d] version = "0.15" optional = true [dependencies.parry2d-f64] version = "0.15" optional = true [dependencies.serde] version = "1" features = ["derive"] optional = true [dev-dependencies.approx] version = "0.5" [dev-dependencies.bevy_math] version = "0.14" features = ["approx"] [dev-dependencies.criterion] version = "0.5" features = ["html_reports"] [dev-dependencies.insta] version = "1.0" [features] 2d = [] bevy_scene = ["bevy/bevy_scene"] debug-plugin = [ "bevy/bevy_gizmos", "bevy/bevy_render", ] default = [ "2d", "f32", "parry-f32", "debug-plugin", "parallel", "bevy_scene", ] default-collider = ["dep:nalgebra"] enhanced-determinism = [ "dep:libm", "parry2d?/enhanced-determinism", "parry2d-f64?/enhanced-determinism", "bevy_math/libm", ] f32 = [] f64 = [] parallel = [ "parry2d?/parallel", "parry2d-f64?/parallel", ] parry-f32 = [ "f32", "dep:parry2d", "default-collider", ] parry-f64 = [ "f64", "dep:parry2d-f64", "default-collider", ] serialize = [ "dep:serde", "bevy/serialize", "parry2d?/serde-serialize", "parry2d-f64?/serde-serialize", ] simd = [ "parry2d?/simd-stable", "parry2d-f64?/simd-stable", ]