aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Collins <[email protected]>2021-03-20 15:02:36 +0000
committerGitHub <[email protected]>2021-03-20 15:02:36 +0000
commit12e7811e29a715f38535609eee806855709d094a (patch)
treeaaee3aaf7347797723dcde15aa09b5aca7cb4151
parentMerge pull request #34 from WilliamVenner/ugc-items (diff)
parentRemove `libc` dependency from `sys` crate (diff)
downloadsteamworks-rs-12e7811e29a715f38535609eee806855709d094a.tar.xz
steamworks-rs-12e7811e29a715f38535609eee806855709d094a.zip
Merge pull request #38 from adumbidiot/rebuild-env
Rebuild `sys` crate whenever `STEAM_SDK_LOCATION` changes
-rw-r--r--steamworks-sys/Cargo.toml2
-rwxr-xr-xsteamworks-sys/build.rs1
-rw-r--r--steamworks-sys/src/lib.rs2
3 files changed, 2 insertions, 3 deletions
diff --git a/steamworks-sys/Cargo.toml b/steamworks-sys/Cargo.toml
index da52af8..cd1e517 100644
--- a/steamworks-sys/Cargo.toml
+++ b/steamworks-sys/Cargo.toml
@@ -7,6 +7,7 @@ description = "Provides raw bindings to the steamworks sdk"
license = "MIT / Apache-2.0"
repository = "https://github.com/Thinkofname/steamworks-rs"
documentation = "https://docs.rs/steamworks-sys"
+edition = "2018"
[package.metadata.docs.rs]
features = [ "docs-only" ]
@@ -19,7 +20,6 @@ docs-only = []
[dependencies]
-libc = "0.2.86"
[build-dependencies]
bindgen = "0.57.0"
diff --git a/steamworks-sys/build.rs b/steamworks-sys/build.rs
index c1f2f11..1813f50 100755
--- a/steamworks-sys/build.rs
+++ b/steamworks-sys/build.rs
@@ -13,6 +13,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let sdk_loc = env::var("STEAM_SDK_LOCATION")
.expect("STEAM_SDK_LOCATION must be set");
let sdk_loc = Path::new(&sdk_loc);
+ println!("cargo:rerun-if-env-changed=STEAM_SDK_LOCATION");
let triple = env::var("TARGET").unwrap();
let mut lib = "steam_api";
diff --git a/steamworks-sys/src/lib.rs b/steamworks-sys/src/lib.rs
index 9e52a0f..180e7c2 100644
--- a/steamworks-sys/src/lib.rs
+++ b/steamworks-sys/src/lib.rs
@@ -2,8 +2,6 @@
#![allow(non_upper_case_globals)]
#![allow(non_snake_case)]
-extern crate libc;
-
#[cfg(not(feature = "docs-only"))]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));