From c2cb3b4915c9b89f528824d93930a9857eb3d60e Mon Sep 17 00:00:00 2001 From: Yash Karandikar Date: Sat, 30 Apr 2022 17:46:20 -0500 Subject: [PATCH] Allow static linking --- Cargo.lock | 20 ++++++++++++++++++-- Cargo.toml | 6 +++++- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e1d5249..96274ff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,19 +10,34 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "cat-box" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f1c7d6dd0dea2e5869d7d63428606d9d789216b9e1230c6f6057aa1b4d68886" +checksum = "24bda0d6fb9dc5a286c9afe6286b1de1f3fe7175310b4b0c2c34174fccafbd19" dependencies = [ "sdl2", ] +[[package]] +name = "cc" +version = "1.0.73" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" + [[package]] name = "cfg-if" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cmake" +version = "0.1.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8ad8cef104ac57b68b89df3208164d228503abbdce70f6880ffa3d970e7443a" +dependencies = [ + "cc", +] + [[package]] name = "getrandom" version = "0.2.6" @@ -101,6 +116,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3586be2cf6c0a8099a79a12b4084357aa9b3e0b0d7980e3b67aaf7a9d55f9f0" dependencies = [ "cfg-if", + "cmake", "libc", "version-compare", ] diff --git a/Cargo.toml b/Cargo.toml index 2d3462f..05b0c29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,10 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -cat-box = "0.1.5" +cat-box = "0.1.6" rand = "0.8.5" sdl2 = "0.35.2" + +[features] +default = [] +static = ["cat-box/static"]