Skip to content

Commit

Permalink
Make the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Jan 15, 2024
1 parent 5596efa commit 847600b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions rust_crate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ documentation = "https://rinf.cunarist.com"
[target.'cfg(not(target_family = "wasm"))'.dependencies]
os-thread-local = "0.1.3"
backtrace = "0.3.69"
protoc-prebuilt = "0.2.0"
home = "0.5.9"

[target.'cfg(target_family = "wasm")'.dependencies]
js-sys = "0.3.65"

[dependencies]
lazy_static = "1.4.0"
protoc-prebuilt = "0.2.0"
home = "0.5.9"
14 changes: 10 additions & 4 deletions rust_crate/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use std::env;
use std::fs;
use std::process::Command;

#[cfg(not(target_family = "wasm"))]
fn main() {
use std::env;
use std::fs;
use std::process::Command;

// Install and remember Protobuf compiler's path
let home_path = home::home_dir().unwrap();
let out_path = home_path.join(".local").join("bin");
Expand Down Expand Up @@ -34,3 +35,8 @@ fn main() {
// Execute the command
let _ = command.status();
}

#[cfg(target_family = "wasm")]
fn main() {
// Separate dummy function to make the linter happy
}

0 comments on commit 847600b

Please sign in to comment.