build: try and fix downstream docs.rs

This commit is contained in:
chyyran 2023-02-06 03:07:48 -05:00
parent 09bdbcdbec
commit 70b57831d3
4 changed files with 3 additions and 12 deletions

2
Cargo.lock generated
View file

@ -216,7 +216,7 @@ dependencies = [
[[package]] [[package]]
name = "spirv-to-dxil-sys" name = "spirv-to-dxil-sys"
version = "0.2.2" version = "0.2.3"
dependencies = [ dependencies = [
"bindgen", "bindgen",
"cmake", "cmake",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "spirv-to-dxil-sys" name = "spirv-to-dxil-sys"
version = "0.2.3" version = "0.2.6"
edition = "2021" edition = "2021"
description = "Raw bindings to spirv-to-dxil" description = "Raw bindings to spirv-to-dxil"
license = "MIT" license = "MIT"
@ -18,5 +18,4 @@ cmake = "0.1"
included-bindings = [] included-bindings = []
[package.metadata.docs.rs] [package.metadata.docs.rs]
targets = []
features = ["included-bindings"] features = ["included-bindings"]

View file

@ -2,7 +2,6 @@
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
#![allow(non_snake_case)] #![allow(non_snake_case)]
#[cfg(not(feature = "included-bindings"))]
include!(concat!(env!("OUT_DIR"), "/bindings.rs")); include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
#[cfg(feature = "included-bindings")] #[cfg(feature = "included-bindings")]

View file

@ -1,6 +1,6 @@
[package] [package]
name = "spirv-to-dxil" name = "spirv-to-dxil"
version = "0.2.5" version = "0.2.6"
edition = "2021" edition = "2021"
description = "Rust bindings to spirv-to-dxil" description = "Rust bindings to spirv-to-dxil"
license = "MIT" license = "MIT"
@ -13,12 +13,5 @@ readme = "../README.md"
spirv-to-dxil-sys = { version = "0.2", path = "../spirv-to-dxil-sys" } spirv-to-dxil-sys = { version = "0.2", path = "../spirv-to-dxil-sys" }
bitflags = "1.3.2" bitflags = "1.3.2"
[features]
included-bindings = ["spirv-to-dxil-sys/included-bindings"]
[dev-dependencies] [dev-dependencies]
bytemuck = "1.13.0" bytemuck = "1.13.0"
[package.metadata.docs.rs]
targets = []
features = ["included-bindings"]