[package]
  cjc-version = "1.0.0"
  name = "http"
  organization = "aceboot"
  version = "0.1.0"
  output-type = "static"

[dependencies]
  "aceboot::web" = { path = "../ace-web" }
  "aceboot::router" = { path = "../ace-router" }

# stdx 预编译接入(本机 cjc 1.1.0-alpha,见 doc/development-plan.md「stdx 接入」)
[target.aarch64-apple-darwin]
  [target.aarch64-apple-darwin.bin-dependencies]
    path-option = ["${CANGJIE_STDX_PATH}/static/stdx"]

# Linux 构建:export CANGJIE_STDX_PATH=<Linux 版 stdx 根目录> 后 cjpm build。
[target.x86_64-unknown-linux-gnu]
  [target.x86_64-unknown-linux-gnu.bin-dependencies]
    path-option = ["${CANGJIE_STDX_PATH}/static/stdx"]

# Intel macOS / Windows:同样经 ${CANGJIE_STDX_PATH} 引用对应平台的 stdx 预编译。
[target.x86_64-apple-darwin]
  [target.x86_64-apple-darwin.bin-dependencies]
    path-option = ["${CANGJIE_STDX_PATH}/static/stdx"]

[target.x86_64-w64-mingw32]
  [target.x86_64-w64-mingw32.bin-dependencies]
    path-option = ["${CANGJIE_STDX_PATH}/static/stdx"]