2022-11-14 17:03:44 +00:00
[ package ]
2022-12-31 23:52:19 +00:00
name = "hackernews"
2022-11-14 17:03:44 +00:00
version = "0.1.0"
edition = "2021"
[ lib ]
crate-type = [ "cdylib" , "rlib" ]
[ dependencies ]
anyhow = "1"
actix-files = { version = "0.6" , optional = true }
actix-web = { version = "4" , optional = true , features = [ "openssl" , "macros" ] }
console_log = "0.2"
console_error_panic_hook = "0.1"
futures = "0.3"
cfg-if = "1"
2022-12-28 20:06:46 +00:00
leptos = { path = "../../leptos" , default-features = false , features = [ "serde" ] }
2022-12-22 07:08:39 +00:00
leptos_meta = { path = "../../meta" , default-features = false }
2022-12-28 20:06:46 +00:00
leptos_actix = { path = "../../integrations/actix" , default-features = false , optional = true }
2022-12-22 07:08:39 +00:00
leptos_router = { path = "../../router" , default-features = false }
2022-11-14 17:03:44 +00:00
log = "0.4"
simple_logger = "2"
serde = { version = "1" , features = [ "derive" ] }
serde_json = "1"
gloo-net = { version = "0.2" , features = [ "http" ] }
reqwest = { version = "0.11" , features = [ "json" ] }
# openssl = { version = "0.10", features = ["v110"] }
2022-12-28 20:06:46 +00:00
wasm-bindgen = "0.2"
2022-11-26 20:29:46 +00:00
web-sys = { version = "0.3" , features = [ "AbortController" , "AbortSignal" ] }
2022-12-28 20:06:46 +00:00
tracing = "0.1"
2022-11-14 17:03:44 +00:00
[ features ]
csr = [ "leptos/csr" , "leptos_meta/csr" , "leptos_router/csr" ]
hydrate = [ "leptos/hydrate" , "leptos_meta/hydrate" , "leptos_router/hydrate" ]
ssr = [
"dep:actix-files" ,
"dep:actix-web" ,
2022-12-05 01:25:03 +00:00
"dep:leptos_actix" ,
2022-11-14 17:03:44 +00:00
"leptos/ssr" ,
"leptos_meta/ssr" ,
"leptos_router/ssr" ,
]
2022-11-15 00:57:08 +00:00
[ package . metadata . cargo-all-features ]
2022-12-05 01:25:03 +00:00
denylist = [ "actix-files" , "actix-web" , "leptos_actix" ]
2022-11-15 03:19:21 +00:00
skip_feature_sets = [ [ "csr" , "ssr" ] , [ "csr" , "hydrate" ] , [ "ssr" , "hydrate" ] ]
2022-12-22 07:08:39 +00:00
2022-12-31 23:52:19 +00:00
[ package . metadata . leptos ]
2022-12-22 07:08:39 +00:00
# The name used by wasm-bindgen/cargo-leptos for the JS/WASM bundle. Defaults to the crate name
2022-12-31 23:52:19 +00:00
output-name = "hackernews"
2022-12-22 07:08:39 +00:00
# The site root folder is where cargo-leptos generate all output. WARNING: all content of this folder will be erased on a rebuild. Use it in your server setup.
2022-12-31 23:52:19 +00:00
site-root = "site/target"
2022-12-27 18:58:05 +00:00
# The site-root relative folder where all compiled output (JS, WASM and CSS) is written
2022-12-22 07:08:39 +00:00
# Defaults to pkg
2022-12-27 18:58:05 +00:00
site-pkg-dir = "pkg"
# [Optional] The source CSS file. If it ends with .sass or .scss then it will be compiled by dart-sass into CSS. The CSS is optimized by Lightning CSS before being written to <site-root>/<site-pkg>/app.css
# style-file = "src/styles/tailwind.css"
# [Optional] Files in the asset-dir will be copied to the site-root directory
# assets-dir = "static/assets"
2022-12-22 07:08:39 +00:00
# The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup.
2022-12-27 18:58:05 +00:00
site-address = "127.0.0.1:3000"
2022-12-22 07:08:39 +00:00
# The port to use for automatic reload monitoring
2022-12-27 18:58:05 +00:00
reload-port = 3001
2022-12-22 07:08:39 +00:00
# [Optional] Command to use when running end2end tests. It will run in the end2end dir.
2022-12-27 18:58:05 +00:00
end2end-cmd = "npx playwright test"
2022-12-22 07:08:39 +00:00
# The browserlist query used for optimizing the CSS.
browserquery = "defaults"
# Set by cargo-leptos watch when building with tha tool. Controls whether autoreload JS will be included in the head
watch = false
# The environment Leptos will run in, usually either "DEV" or "PROD"
env = "DEV"
2022-12-27 18:58:05 +00:00
# The features to use when compiling the bin target
#
# Optional. Can be over-ridden with the command line parameter --bin-features
bin-features = [ "ssr" ]
# If the --no-default-features flag should be used when compiling the bin target
#
# Optional. Defaults to false.
bin-default-features = false
# The features to use when compiling the lib target
#
# Optional. Can be over-ridden with the command line parameter --lib-features
lib-features = [ "hydrate" ]
# If the --no-default-features flag should be used when compiling the lib target
#
# Optional. Defaults to false.
lib-default-features = false