Skip to content

Commit

Permalink
Enable features for docs.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 25, 2020
1 parent f86f98b commit 1f64ff2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[package]

name = "sdl2"
name = "sdl2"
description = "SDL2 bindings for Rust"
repository = "https://github.com/Rust-SDL2/rust-sdl2"
documentation = "https://rust-sdl2.github.io/rust-sdl2/sdl2/"
Expand All @@ -11,9 +10,8 @@ keywords = ["SDL", "windowing", "graphics", "api", "engine"]
categories = ["rendering","api-bindings","game-engines","multimedia"]

[lib]

name = "sdl2"
path = "src/sdl2/lib.rs"
name = "sdl2"
path = "src/sdl2/lib.rs"

[dependencies]
bitflags = "^1"
Expand Down Expand Up @@ -41,7 +39,6 @@ version = "0.3.3"
optional = true

[features]

unsafe_textures = []
default = []
gfx = ["c_vec", "sdl2-sys/gfx"]
Expand All @@ -53,7 +50,10 @@ use-bindgen = ["sdl2-sys/use-bindgen"]
use-pkgconfig = ["sdl2-sys/use-pkgconfig"]
use_mac_framework = ["sdl2-sys/use_mac_framework"]
bundled = ["sdl2-sys/bundled"]
static-link= ["sdl2-sys/static-link"]
static-link = ["sdl2-sys/static-link"]

[package.metadata.docs.rs]
features = ["default", "gfx", "mixer", "image", "ttf"]

[[example]]
name = "animation"
Expand Down

0 comments on commit 1f64ff2

Please sign in to comment.