Skip to content

Commit

Permalink
Initial project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
gwihlidal committed Nov 18, 2018
1 parent 29a5396 commit af0b29f
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .travis.yml
@@ -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
34 changes: 34 additions & 0 deletions Cargo.toml
@@ -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
5 changes: 5 additions & 0 deletions examples/demo.rs
@@ -0,0 +1,5 @@
extern crate spirv_reflect;

fn main() {
println!("Testing");
}
6 changes: 6 additions & 0 deletions src/ffi.rs
@@ -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");
1 change: 1 addition & 0 deletions src/lib.rs
@@ -0,0 +1 @@
pub mod ffi;

0 comments on commit af0b29f

Please sign in to comment.