Cargo.toml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. [package]
  2. name = "scrap"
  3. description = "Screen capture made easy."
  4. version = "0.5.0"
  5. repository = "https://github.com/quadrupleslap/scrap"
  6. documentation = "https://docs.rs/scrap"
  7. keywords = ["screen", "capture", "record"]
  8. license = "MIT"
  9. authors = ["Ram <quadrupleslap@gmail.com>"]
  10. edition = "2018"
  11. [features]
  12. wayland = ["gstreamer", "gstreamer-app", "gstreamer-video", "dbus", "tracing"]
  13. mediacodec = ["ndk"]
  14. linux-pkg-config = ["dep:pkg-config"]
  15. hwcodec = ["dep:hwcodec"]
  16. vram = ["hwcodec/vram"]
  17. [dependencies]
  18. cfg-if = "1.0"
  19. num_cpus = "1.15"
  20. lazy_static = "1.4"
  21. hbb_common = { path = "../hbb_common" }
  22. webm = { git = "https://github.com/rustdesk-org/rust-webm" }
  23. serde = {version="1.0", features=["derive"]}
  24. [dependencies.winapi]
  25. version = "0.3"
  26. default-features = true
  27. features = ["dxgi", "dxgi1_2", "dxgi1_5", "d3d11", "winuser", "winerror", "errhandlingapi", "libloaderapi"]
  28. [target.'cfg(target_os = "macos")'.dependencies]
  29. block = "0.1"
  30. [target.'cfg(target_os = "android")'.dependencies]
  31. android_logger = "0.13"
  32. jni = "0.21"
  33. lazy_static = "1.4"
  34. log = "0.4"
  35. serde_json = "1.0"
  36. ndk = { version = "0.7", features = ["media"], optional = true}
  37. ndk-context = "0.1"
  38. [target.'cfg(not(target_os = "android"))'.dev-dependencies]
  39. repng = "0.2"
  40. docopt = "1.1"
  41. quest = "0.3"
  42. [build-dependencies]
  43. target_build_utils = "0.3"
  44. bindgen = "0.65"
  45. pkg-config = { version = "0.3.27", optional = true }
  46. [target.'cfg(target_os = "linux")'.dependencies]
  47. dbus = { version = "0.9", optional = true }
  48. tracing = { version = "0.1", optional = true }
  49. gstreamer = { version = "0.16", optional = true }
  50. gstreamer-app = { version = "0.16", features = ["v1_10"], optional = true }
  51. gstreamer-video = { version = "0.16", optional = true }
  52. [dependencies.hwcodec]
  53. git = "https://github.com/rustdesk-org/hwcodec"
  54. optional = true