# 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"
rust-version = "1.66"
name = "sfml"
version = "0.21.0"
authors = ["Jeremy Letang <letang.jeremy@gmail.com>"]
description = "Rust binding for sfml"
documentation = "https://docs.rs/sfml"
readme = "README.md"
keywords = [
    "sfml",
    "multimedia",
    "game",
]
license = "zlib-acknowledgement"
repository = "https://github.com/jeremyletang/rust-sfml"

[lib]
name = "sfml"

[[example]]
name = "borrowed-resources"
required-features = ["graphics"]

[[example]]
name = "custom-drawable"
required-features = ["graphics"]

[[example]]
name = "custom-shape"
required-features = ["graphics"]

[[example]]
name = "custom-sound-stream"
required-features = ["audio"]

[[example]]
name = "mouse"
required-features = ["graphics"]

[[example]]
name = "music-stream"
required-features = ["audio"]

[[example]]
name = "pong"
required-features = [
    "graphics",
    "audio",
]

[[example]]
name = "sound-capture"
required-features = ["audio"]

[[example]]
name = "sound"
required-features = ["audio"]

[[example]]
name = "unicode-text-entry"
required-features = ["graphics"]

[[example]]
name = "vertex-arrays"
required-features = ["graphics"]

[[example]]
name = "shader"
required-features = ["graphics"]

[[example]]
name = "custom-sound-recorder"
required-features = ["audio"]

[[example]]
name = "cursor"
required-features = ["graphics"]

[[example]]
name = "resource-holder"
required-features = [
    "graphics",
    "audio",
]

[[example]]
name = "vertex-buffers"
required-features = ["graphics"]

[[example]]
name = "spritemark"
required-features = ["graphics"]

[[example]]
name = "opengl"
required-features = ["graphics"]

[[example]]
name = "video_modes"
required-features = ["window"]

[[example]]
name = "joystick"
required-features = ["window"]

[[example]]
name = "rc-resources"
required-features = [
    "graphics",
    "window",
]

[dependencies.bitflags]
version = "2.3.3"
optional = true

[dependencies.link-cplusplus]
version = "1.0"

[dependencies.num-traits]
version = "0.2.15"

[dependencies.once_cell]
version = "1.18.0"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.widestring]
version = "1.0"

[dev-dependencies.glu-sys]
version = "0.1.4"

[dev-dependencies.rand]
version = "0.8.5"

[build-dependencies.cc]
version = "1.0.79"

[features]
audio = []
ci-headless = []
default = [
    "graphics",
    "audio",
]
graphics = ["window"]
serde = ["dep:serde"]
window = [
    "bitflags",
    "once_cell",
]
