Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
language: rust | ||
sudo: false | ||
cache: cargo | ||
|
||
matrix: | ||
allow_failures: | ||
- rust: nightly | ||
- os: windows | ||
fast_finish: true | ||
|
||
include: | ||
- rust: stable | ||
|
||
- name: "Clippy" | ||
rust: nightly | ||
before_script: rustup component add clippy-preview | ||
script: cargo clippy --all | ||
|
||
- name: "rustfmt" | ||
rust: stable | ||
before_script: rustup component add rustfmt-preview | ||
script: cargo fmt --all -- --check | ||
|
||
- name: "warnings" | ||
rust: stable | ||
script: cargo check --all | ||
|
||
- name: "release" | ||
rust: stable | ||
script: | ||
- cargo build --verbose --all --release | ||
- cargo test --verbose --all --release | ||
- cargo doc --verbose --all --release | ||
|
||
- os: osx | ||
osx_image: xcode10 | ||
- os: windows | ||
|
||
script: | ||
- cargo build --all --verbose | ||
- cargo test --all --verbose | ||
- cargo doc --all --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[package] | ||
name = "spirv-reflect" | ||
version = "0.1.0" | ||
authors = ["Graham Wihlidal <graham@wihlidal.ca>"] | ||
description = "Reflection API in rust for SPIR-V shader byte code, intended for Vulkan applications." | ||
homepage = "https://github.com/gwihlidal/spirv-reflect-rs" | ||
repository = "https://github.com/gwihlidal/spirv-reflect-rs" | ||
documentation = "https://docs.rs/meshopt" | ||
readme = "README.md" | ||
keywords = ["shader", "spirv", "glsl", "hlsl", "reflect"] | ||
categories = ["rendering", "rendering::engine", ] | ||
license = "MIT/Apache-2.0" | ||
build = "build.rs" | ||
include = [ | ||
"src/*.rs", | ||
"gen/bindings.rs", | ||
"build.rs", | ||
"Cargo.toml", | ||
"vendor/spirv_reflect.h", | ||
"vendor/spirv_reflect.c", | ||
"vendor/include/spirv/unified1/spirv.h", | ||
] | ||
|
||
[badges] | ||
travis-ci = { repository = "gwihlidal/spirv-reflect-rs" } | ||
maintenance = { status = "actively-developed" } | ||
|
||
[build-dependencies] | ||
cc = { version = "1.0.25", features = ["parallel"] } | ||
|
||
[profile.release] | ||
lto = true | ||
opt-level = 3 | ||
codegen-units = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
extern crate spirv_reflect; | ||
|
||
fn main() { | ||
println!("Testing"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#![allow(non_upper_case_globals)] | ||
#![allow(non_camel_case_types)] | ||
#![allow(non_snake_case)] | ||
#![cfg_attr(feature = "cargo-clippy", allow(clippy::unreadable_literal))] | ||
|
||
include!("../gen/bindings.rs"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod ffi; |