Files

84 lines
2.7 KiB
Plaintext
Raw Permalink 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 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
exposed-modules: ChuSQL.Web.API
2026-09-25 17:41:51 +08:00
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
2026-10-05 22:22:23 +08:00
, chusql-core-engine
, 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