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" ]
2023-04-07 02:53:52 +00:00
[ profile . release ]
codegen-units = 1
lto = true
2022-11-14 17:03:44 +00:00
[ dependencies ]
actix-files = { version = "0.6" , optional = true }
2023-02-06 14:10:09 +00:00
actix-web = { version = "4" , optional = true , features = [ "macros" ] }
2023-03-22 22:21:53 +00:00
console_log = "1"
2022-11-14 17:03:44 +00:00
console_error_panic_hook = "0.1"
2023-09-29 17:36:13 +00:00
leptos = { path = "../../leptos" , features = [ "nightly" ] }
2023-06-27 01:12:14 +00:00
leptos_meta = { path = "../../meta" , features = [ "nightly" ] }
leptos_actix = { path = "../../integrations/actix" , optional = true }
leptos_router = { path = "../../router" , features = [ "nightly" ] }
2022-11-14 17:03:44 +00:00
log = "0.4"
serde = { version = "1" , features = [ "derive" ] }
gloo-net = { version = "0.2" , features = [ "http" ] }
reqwest = { version = "0.11" , features = [ "json" ] }
2023-03-13 14:16:20 +00:00
tracing = "0.1"
2022-11-14 17:03:44 +00:00
# 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-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
2023-09-08 20:33:00 +00:00
[ profile . wasm-release ]
inherits = "release"
opt-level = 'z'
lto = true
codegen-units = 1
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
2023-02-06 14:10:09 +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.
2023-01-01 02:39:05 +00:00
site-root = "target/site"
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
2023-02-06 14:10:09 +00:00
site-pkg-dir = "pkg"
2022-12-27 18:58:05 +00:00
# [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
2023-01-01 02:39:05 +00:00
style-file = "./style.css"
2022-12-27 18:58:05 +00:00
# [Optional] Files in the asset-dir will be copied to the site-root directory
2023-01-09 23:27:52 +00:00
assets-dir = "public"
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.
2023-02-06 14:10:09 +00:00
site-addr = "127.0.0.1:3000"
2022-12-22 07:08:39 +00:00
# The port to use for automatic reload monitoring
2023-02-06 14:10:09 +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.
2023-02-06 14:10:09 +00:00
browserquery = "defaults"
2024-02-05 10:20:53 +00:00
# Set by cargo-leptos watch when building with that tool. Controls whether autoreload JS will be included in the head
2023-02-06 14:10:09 +00:00
watch = false
2022-12-22 07:08:39 +00:00
# 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.
2023-02-06 14:10:09 +00:00
lib-default-features = false
2023-09-08 20:33:00 +00:00
lib-profile-release = "wasm-release"