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. build-type: Simple library hs-source-dirs: src exposed-modules: ChuSQL.Web.API ChuSQL.Web.Demo ChuSQL.Web.Secure ChuSQL.Web.Static ChuSQL.Web.UISettings build-depends: base >= 4.14 && < 5 , aeson , bytestring , chusql-core-model , chusql-core-engine , chusql-interface , 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 , chusql-web , containers , 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 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 build-depends: base , aeson , bytestring , chusql-core-model , chusql-interface , 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