2026-09-25 17:41:51 +08:00
|
|
|
|
cabal-version: 2.4
|
|
|
|
|
|
|
|
|
|
|
|
name: chusql-web
|
|
|
|
|
|
version: 1.0.0
|
2026-10-05 00:15:01 +08:00
|
|
|
|
synopsis: ChuSQL web administration with Scotty, REST APIs, and static pages
|
|
|
|
|
|
description: Provides the browser administration interface, HTTP APIs,
|
|
|
|
|
|
authentication, and static file delivery. Forwards SQL to
|
|
|
|
|
|
chusql-server over TCP; query execution and storage remain in
|
|
|
|
|
|
the database server process.
|
2026-09-25 17:41:51 +08:00
|
|
|
|
build-type: Simple
|
|
|
|
|
|
|
|
|
|
|
|
library
|
|
|
|
|
|
hs-source-dirs: src
|
2026-10-02 14:53:02 +08:00
|
|
|
|
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
|
2026-10-02 14:53:02 +08:00
|
|
|
|
, 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
|
2026-10-02 14:53:02 +08:00
|
|
|
|
, 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
|
2026-10-02 14:53:02 +08:00
|
|
|
|
-- 运行期找 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
|
2026-10-02 14:53:02 +08:00
|
|
|
|
other-modules: Gates
|
|
|
|
|
|
build-tool-depends: chusql-server:chusql-server
|
2026-10-03 02:17:46 +08:00
|
|
|
|
, chusql-bootstrap:csql-bootstrap
|
2026-09-25 17:41:51 +08:00
|
|
|
|
build-depends: base
|
|
|
|
|
|
, aeson
|
|
|
|
|
|
, bytestring
|
2026-10-02 14:53:02 +08:00
|
|
|
|
, 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
|
2026-10-02 14:53:02 +08:00
|
|
|
|
ghc-options: -Wall -threaded
|