awrznc / GalM

Matching library.
https://awrznc.github.io/GalM/
MIT License
3 stars 0 forks source link

ビルドの実行が手間 #6

Closed awrznc closed 4 years ago

awrznc commented 4 years ago

Overview

( #3 での対応により )環境変数を指定しないとビルドできない。

$ cargo run
    Updating crates.io index
  Downloaded galm v0.0.4
   Compiling galm v0.0.4
error: environment variable `CARGO_TARGET_DIR` not defined
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/galm-0.0.4/./src/buil
d.rs:8:46
  |
8 |     let mut file = fs::File::create( concat!(env!("CARGO_TARGET_DIR"), "/con
verted_data.rs") ).unwrap();
  |                                              ^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

error: could not compile `galm`.

To learn more, run the command again with --verbose.
$ env CARGO_TARGET_DIR=/home/target cargo run
   Compiling galm v0.0.4
   Compiling sample v0.1.0 (/root/sample)
    Finished dev [unoptimized + debuginfo] target(s) in 17.41s
     Running `/home/target/debug/sample`

手間なのでどこかで改修したい。。

awrznc commented 4 years ago

8 で対応したのでcloseします!