forked from servo/servo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request servo#11 from MortimerGoro/separate_crates
Separate rust-webvr traits to a different crate
- Loading branch information
Showing
61 changed files
with
122 additions
and
98 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 |
---|---|---|
@@ -1,45 +1,5 @@ | ||
[package] | ||
name = "rust-webvr" | ||
version = "0.7.0" | ||
authors = ["Imanol Fernandez <[email protected]>"] | ||
|
||
homepage = "https://github.com/MortimerGoro/rust-webvr" | ||
repository = "https://github.com/MortimerGoro/rust-webvr" | ||
keywords = ["webvr", "openvr", "oculus", "headset", "vr"] | ||
license = "MIT" | ||
|
||
description = '''Safe rust API that provides a way to interact with Virtual Reality headsets | ||
and integration with vendor specific SDKs like OpenVR and Oculus. The API is inspired on the | ||
easy to use WebVR API but adapted to Rust design patterns''' | ||
|
||
exclude = [ | ||
"examples/*", | ||
[workspace] | ||
members = [ | ||
"rust-webvr", | ||
"rust-webvr-api", | ||
] | ||
|
||
build = "build.rs" | ||
|
||
[package.metadata.android] | ||
package-name = "rust.webvr" | ||
|
||
[features] | ||
default = ["openvr", "mock"] | ||
openvr = ["libloading"] | ||
mock = [] | ||
googlevr = ["gvr-sys"] | ||
oculusvr = ["ovr-mobile-sys"] | ||
serde-serialization = ["serde", "serde_derive"] | ||
|
||
[dependencies] | ||
log = "0.3" | ||
serde = { version = "1.0", optional = true } | ||
serde_derive = { version = "1.0", optional = true } | ||
time = "0.1" | ||
libloading = { version = "0.4", optional = true, default-features = false } | ||
gvr-sys = { version = "0.5", optional = true } | ||
ovr-mobile-sys = { version = "0.3.1", optional = true } | ||
|
||
[target.'cfg(target_os = "android")'.dependencies] | ||
android_injected_glue = "0.2.2" | ||
|
||
[build-dependencies] | ||
gl_generator = "0.5.0" |
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,27 @@ | ||
[package] | ||
name = "rust-webvr-api" | ||
version = "0.8.0" | ||
authors = ["Imanol Fernandez <[email protected]>"] | ||
|
||
homepage = "https://github.com/MortimerGoro/rust-webvr" | ||
repository = "https://github.com/MortimerGoro/rust-webvr" | ||
keywords = ["webvr", "openvr", "oculus", "headset", "vr"] | ||
license = "MIT" | ||
|
||
description = '''Safe rust API that provides a way to interact with Virtual Reality headsets | ||
and integration with vendor specific SDKs like OpenVR and Oculus. The API is inspired on the | ||
easy to use WebVR API but adapted to Rust design patterns''' | ||
|
||
[features] | ||
default = ["utils", "jni_utils"] | ||
utils = ["time"] | ||
jni_utils = ["android_injected_glue"] | ||
serde-serialization = ["serde", "serde_derive"] | ||
|
||
[dependencies] | ||
serde = { version = "1.0", optional = true } | ||
serde_derive = { version = "1.0", optional = true } | ||
time = { version = "0.1", optional = true } | ||
|
||
[target.'cfg(target_os = "android")'.dependencies] | ||
android_injected_glue = { version = "0.2.2", optional = true } |
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,37 @@ | ||
[package] | ||
name = "rust-webvr" | ||
version = "0.8.0" | ||
authors = ["Imanol Fernandez <[email protected]>"] | ||
|
||
homepage = "https://github.com/MortimerGoro/rust-webvr" | ||
repository = "https://github.com/MortimerGoro/rust-webvr" | ||
keywords = ["webvr", "openvr", "oculus", "headset", "vr"] | ||
license = "MIT" | ||
|
||
description = '''Safe rust API that provides a way to interact with Virtual Reality headsets | ||
and integration with vendor specific SDKs like OpenVR and Oculus. The API is inspired on the | ||
easy to use WebVR API but adapted to Rust design patterns''' | ||
|
||
exclude = [ | ||
"examples/*", | ||
] | ||
|
||
build = "build.rs" | ||
|
||
[features] | ||
default = ["openvr", "mock"] | ||
openvr = ["libloading"] | ||
mock = [] | ||
googlevr = ["gvr-sys"] | ||
oculusvr = ["ovr-mobile-sys"] | ||
|
||
[dependencies] | ||
rust-webvr-api = "0.8" #{ path = "../rust-webvr-api" } | ||
log = "0.3" | ||
time = "0.1" | ||
libloading = { version = "0.4", optional = true, default-features = false } | ||
gvr-sys = { version = "0.5", optional = true } | ||
ovr-mobile-sys = { version = "0.3.1", optional = true } | ||
|
||
[build-dependencies] | ||
gl_generator = "0.5.0" |
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
src/api/googlevr/gamepad.rs → rust-webvr/src/api/googlevr/gamepad.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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
File renamed without changes.
File renamed without changes.
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
mod display; | ||
mod gamepad; | ||
mod service; | ||
use super::jni_utils; | ||
|
||
use {VRService, VRServiceCreator}; | ||
|
||
|
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
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,24 @@ | ||
extern crate rust_webvr_api; | ||
#[cfg(all(feature = "googlevr", target_os= "android"))] | ||
extern crate gvr_sys; | ||
#[cfg(feature = "openvr")] | ||
extern crate libloading; | ||
#[macro_use] | ||
extern crate log; | ||
#[cfg(all(feature = "oculusvr", target_os= "android"))] | ||
extern crate ovr_mobile_sys; | ||
#[cfg(feature = "serde-serialization")] | ||
#[macro_use] | ||
extern crate serde_derive; | ||
extern crate time; | ||
|
||
#[cfg(any(feature = "googlevr", feature= "oculusvr"))] | ||
mod gl { | ||
include!(concat!(env!("OUT_DIR"), "/gles_bindings.rs")); | ||
} | ||
|
||
pub mod api; | ||
mod vr_manager; | ||
|
||
pub use rust_webvr_api::*; | ||
pub use vr_manager::VRServiceManager; |
File renamed without changes.