Files
ChuSQL/chusql-web/chusql-web.cabal
T

84 lines
2.8 KiB
Plaintext
Raw Normal View History

2026-09-25 17:41:51 +08:00
cabal-version: 2.4
name: chusql-web
version: 1.0.0
synopsis: ChuSQL Web 管理端:Scotty + REST API + 静态页面
description: ChuSQL 的浏览器管理端。负责 HTTP 交付、鉴权、静态文件,
并把用户的 SQL 经 TCP 转交给 chusql-server(存储由服务器进程里的
chusql_core_storage 动态库承担)。本进程不链引擎,也不碰存储。
数据库服务器与 TCP 协议在 chusql-server 包里,这里只做 HTTP 这一面。
2026-09-25 17:41:51 +08:00
build-type: Simple
library
hs-source-dirs: src
exposed-modules: ChuSQL.Web.API
2026-09-25 17:41:51 +08:00
ChuSQL.Web.Demo
ChuSQL.Web.Secure
ChuSQL.Web.Static
2026-10-01 20:48:38 +08:00
ChuSQL.Web.UISettings
2026-09-25 17:41:51 +08:00
build-depends: base >= 4.14 && < 5
, aeson
, bytestring
, chusql-core-model
, chusql-interface
2026-09-25 17:41:51 +08:00
, containers
, directory
, filepath
, http-types
, scientific
, scotty
, text
, time
, vector
, wai
default-language: Haskell2010
ghc-options: -Wall
executable chusql-web
main-is: Main.hs
hs-source-dirs: app
build-depends: base
, chusql-interface
2026-09-25 17:41:51 +08:00
, chusql-web
2026-10-01 20:48:38 +08:00
, containers
2026-09-25 17:41:51 +08:00
, text
, time
, wai
, warp
default-language: Haskell2010
ghc-options: -Wall
-- 运行期找 libchusql_core_storage.so:$ORIGIN 让二进制与动态库同目录即可
if os(linux)
ld-options: -Wl,-rpath,$ORIGIN
if os(osx)
ld-options: -Wl,-rpath,@loader_path
2026-09-25 17:41:51 +08:00
test-suite chusql-web-test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
other-modules: Gates
build-tool-depends: chusql-server:chusql-server
, chusql-bootstrap:csql-bootstrap
2026-09-25 17:41:51 +08:00
build-depends: base
, aeson
, bytestring
, chusql-core-model
, chusql-interface
2026-09-25 17:41:51 +08:00
, chusql-web
, containers
, directory
, filepath
, hspec
, hspec-wai
, http-client
, http-types
, process
, text
, time
, vector
, wai
, wai-extra
, warp
default-language: Haskell2010
ghc-options: -Wall -threaded