mvniekerk / tokio-cron-scheduler

Schedule tasks on Tokio using cron-like annotation
Apache License 2.0
453 stars 54 forks source link

Can't compile on Windows #21

Closed wormtql closed 2 years ago

wormtql commented 2 years ago

It said program not found, but it didn't say which program is not found.

error: failed to run custom build command for `tokio-cron-scheduler v0.6.5`

Caused by:
  process didn't exit successfully: `E:\rust\mona_no_home\target\debug\build\tokio-cron-scheduler-1fdd5ffe6d9dbf34\build-script-build` (exit code: 101)
  --- stdout
  Manifest C:\Users\58413\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-cron-scheduler-0.6.5
  Out E:\rust\mona_no_home\target\debug\build\tokio-cron-scheduler-e771aa1cdae8e415\out

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: NotFound, message: "program not found" }', C:\Users\58413\.cargo\registry\src\github.com-1ecc6299db9ec823\tokio-cron-scheduler-0.6.5\build.rs:22:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wormtql commented 2 years ago

I see there is a cp command in build.rs, is it possible to conditionally compile on windows? Or using cross-platform utils to do the cp?