Pslink/Cargo.toml

43 lines
1.3 KiB
TOML
Raw Normal View History

2021-02-04 15:07:55 +01:00
[package]
Add command line interface Add a command line interface to the binary and remove parts that were hardcoded. new --help is: ``` pslink 0.1.0 Dietrich <dietrich@teilgedanken.de> A simple webservice that allows registered users to create short links including qr-codes. Anyone can visit the shortened links. This is an ideal setup for small busines or for publishing papers. USAGE: pslink [OPTIONS] [SUBCOMMAND] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: --db <database> The path of the sqlite database [env: PSLINK_DATABASE=] [default: links.db] -i, --hostip <internal_ip> The host (ip) that will run the pslink service [env: PSLINK_IP=] [default: localhost] -p, --port <port> The port the pslink service will run on [env: PSLINK_PORT=] [default: 8080] -t, --protocol <protocol> The protocol that is used in the qr-codes (http results in slightly smaller codes in some cases) [env: PSLINK_PROTOCOL=] [default: http] [possible values: http, https] -u, --public-url <public_url> The host url or the page that will be part of the short urls. [env: PSLINK_PUBLIC_URL=] [default: localhost:8080] --secret <secret> The secret that is used to encrypt the password database keep this as inacessable as possible. As commandlineparameters are visible to all users it is not wise to use this as a commandline parameter but rather as an environment variable. [env: PSLINK_SECRET=] [default: ] SUBCOMMANDS: runserver Run the server create-admin Create an admin user. generate-env Generate an .env file template using default settings and exit migrate-database Apply any pending migrations and exit help Prints this message or the help of the given subcommand(s) ```
2021-03-07 19:14:34 +01:00
name = "pslink"
2021-03-27 11:23:02 +01:00
version = "0.3.1"
Add command line interface Add a command line interface to the binary and remove parts that were hardcoded. new --help is: ``` pslink 0.1.0 Dietrich <dietrich@teilgedanken.de> A simple webservice that allows registered users to create short links including qr-codes. Anyone can visit the shortened links. This is an ideal setup for small busines or for publishing papers. USAGE: pslink [OPTIONS] [SUBCOMMAND] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: --db <database> The path of the sqlite database [env: PSLINK_DATABASE=] [default: links.db] -i, --hostip <internal_ip> The host (ip) that will run the pslink service [env: PSLINK_IP=] [default: localhost] -p, --port <port> The port the pslink service will run on [env: PSLINK_PORT=] [default: 8080] -t, --protocol <protocol> The protocol that is used in the qr-codes (http results in slightly smaller codes in some cases) [env: PSLINK_PROTOCOL=] [default: http] [possible values: http, https] -u, --public-url <public_url> The host url or the page that will be part of the short urls. [env: PSLINK_PUBLIC_URL=] [default: localhost:8080] --secret <secret> The secret that is used to encrypt the password database keep this as inacessable as possible. As commandlineparameters are visible to all users it is not wise to use this as a commandline parameter but rather as an environment variable. [env: PSLINK_SECRET=] [default: ] SUBCOMMANDS: runserver Run the server create-admin Create an admin user. generate-env Generate an .env file template using default settings and exit migrate-database Apply any pending migrations and exit help Prints this message or the help of the given subcommand(s) ```
2021-03-07 19:14:34 +01:00
description = "A simple webservice that allows registered users to create short links including qr-codes.\nAnyone can visit the shortened links. This is an ideal setup for small busines or for publishing papers."
2021-02-04 15:07:55 +01:00
authors = ["Dietrich <dietrich@teilgedanken.de>"]
edition = "2018"
Add command line interface Add a command line interface to the binary and remove parts that were hardcoded. new --help is: ``` pslink 0.1.0 Dietrich <dietrich@teilgedanken.de> A simple webservice that allows registered users to create short links including qr-codes. Anyone can visit the shortened links. This is an ideal setup for small busines or for publishing papers. USAGE: pslink [OPTIONS] [SUBCOMMAND] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: --db <database> The path of the sqlite database [env: PSLINK_DATABASE=] [default: links.db] -i, --hostip <internal_ip> The host (ip) that will run the pslink service [env: PSLINK_IP=] [default: localhost] -p, --port <port> The port the pslink service will run on [env: PSLINK_PORT=] [default: 8080] -t, --protocol <protocol> The protocol that is used in the qr-codes (http results in slightly smaller codes in some cases) [env: PSLINK_PROTOCOL=] [default: http] [possible values: http, https] -u, --public-url <public_url> The host url or the page that will be part of the short urls. [env: PSLINK_PUBLIC_URL=] [default: localhost:8080] --secret <secret> The secret that is used to encrypt the password database keep this as inacessable as possible. As commandlineparameters are visible to all users it is not wise to use this as a commandline parameter but rather as an environment variable. [env: PSLINK_SECRET=] [default: ] SUBCOMMANDS: runserver Run the server create-admin Create an admin user. generate-env Generate an .env file template using default settings and exit migrate-database Apply any pending migrations and exit help Prints this message or the help of the given subcommand(s) ```
2021-03-07 19:14:34 +01:00
license = "MIT OR Apache-2.0"
2021-03-15 14:06:28 +01:00
keywords = ["url", "link", "webpage", "actix", "web"]
2021-03-15 14:38:34 +01:00
categories = ["web-programming", "network-programming", "web-programming::http-server", "command-line-utilities"]
Add command line interface Add a command line interface to the binary and remove parts that were hardcoded. new --help is: ``` pslink 0.1.0 Dietrich <dietrich@teilgedanken.de> A simple webservice that allows registered users to create short links including qr-codes. Anyone can visit the shortened links. This is an ideal setup for small busines or for publishing papers. USAGE: pslink [OPTIONS] [SUBCOMMAND] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: --db <database> The path of the sqlite database [env: PSLINK_DATABASE=] [default: links.db] -i, --hostip <internal_ip> The host (ip) that will run the pslink service [env: PSLINK_IP=] [default: localhost] -p, --port <port> The port the pslink service will run on [env: PSLINK_PORT=] [default: 8080] -t, --protocol <protocol> The protocol that is used in the qr-codes (http results in slightly smaller codes in some cases) [env: PSLINK_PROTOCOL=] [default: http] [possible values: http, https] -u, --public-url <public_url> The host url or the page that will be part of the short urls. [env: PSLINK_PUBLIC_URL=] [default: localhost:8080] --secret <secret> The secret that is used to encrypt the password database keep this as inacessable as possible. As commandlineparameters are visible to all users it is not wise to use this as a commandline parameter but rather as an environment variable. [env: PSLINK_SECRET=] [default: ] SUBCOMMANDS: runserver Run the server create-admin Create an admin user. generate-env Generate an .env file template using default settings and exit migrate-database Apply any pending migrations and exit help Prints this message or the help of the given subcommand(s) ```
2021-03-07 19:14:34 +01:00
readme = "README.md"
repository = "https://github.com/enaut/pslink/"
2021-02-04 15:07:55 +01:00
build = "build.rs"
2021-02-04 15:07:55 +01:00
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-web = "3"
actix-web-static-files = "3.0"
Add command line interface Add a command line interface to the binary and remove parts that were hardcoded. new --help is: ``` pslink 0.1.0 Dietrich <dietrich@teilgedanken.de> A simple webservice that allows registered users to create short links including qr-codes. Anyone can visit the shortened links. This is an ideal setup for small busines or for publishing papers. USAGE: pslink [OPTIONS] [SUBCOMMAND] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: --db <database> The path of the sqlite database [env: PSLINK_DATABASE=] [default: links.db] -i, --hostip <internal_ip> The host (ip) that will run the pslink service [env: PSLINK_IP=] [default: localhost] -p, --port <port> The port the pslink service will run on [env: PSLINK_PORT=] [default: 8080] -t, --protocol <protocol> The protocol that is used in the qr-codes (http results in slightly smaller codes in some cases) [env: PSLINK_PROTOCOL=] [default: http] [possible values: http, https] -u, --public-url <public_url> The host url or the page that will be part of the short urls. [env: PSLINK_PUBLIC_URL=] [default: localhost:8080] --secret <secret> The secret that is used to encrypt the password database keep this as inacessable as possible. As commandlineparameters are visible to all users it is not wise to use this as a commandline parameter but rather as an environment variable. [env: PSLINK_SECRET=] [default: ] SUBCOMMANDS: runserver Run the server create-admin Create an admin user. generate-env Generate an .env file template using default settings and exit migrate-database Apply any pending migrations and exit help Prints this message or the help of the given subcommand(s) ```
2021-03-07 19:14:34 +01:00
actix-slog = "0.2"
2021-02-04 15:07:55 +01:00
tera = "1.6"
serde = "1.0"
2021-03-27 10:14:14 +01:00
sqlx={version="0.4", features = [ "sqlite", "macros", "runtime-actix-rustls", "chrono", "migrate", "offline" ]}
2021-03-21 08:31:47 +01:00
dotenv = "0.15.0"
2021-02-04 15:07:55 +01:00
actix-identity = "0.3"
chrono = { version = "0.4", features = ["serde"] }
argonautica = "0.2"
Add command line interface Add a command line interface to the binary and remove parts that were hardcoded. new --help is: ``` pslink 0.1.0 Dietrich <dietrich@teilgedanken.de> A simple webservice that allows registered users to create short links including qr-codes. Anyone can visit the shortened links. This is an ideal setup for small busines or for publishing papers. USAGE: pslink [OPTIONS] [SUBCOMMAND] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: --db <database> The path of the sqlite database [env: PSLINK_DATABASE=] [default: links.db] -i, --hostip <internal_ip> The host (ip) that will run the pslink service [env: PSLINK_IP=] [default: localhost] -p, --port <port> The port the pslink service will run on [env: PSLINK_PORT=] [default: 8080] -t, --protocol <protocol> The protocol that is used in the qr-codes (http results in slightly smaller codes in some cases) [env: PSLINK_PROTOCOL=] [default: http] [possible values: http, https] -u, --public-url <public_url> The host url or the page that will be part of the short urls. [env: PSLINK_PUBLIC_URL=] [default: localhost:8080] --secret <secret> The secret that is used to encrypt the password database keep this as inacessable as possible. As commandlineparameters are visible to all users it is not wise to use this as a commandline parameter but rather as an environment variable. [env: PSLINK_SECRET=] [default: ] SUBCOMMANDS: runserver Run the server create-admin Create an admin user. generate-env Generate an .env file template using default settings and exit migrate-database Apply any pending migrations and exit help Prints this message or the help of the given subcommand(s) ```
2021-03-07 19:14:34 +01:00
slog = "2"
slog-term = "2"
slog-async = "2"
2021-02-07 17:49:13 +01:00
qrcode = "0.12"
image = "0.23"
Add command line interface Add a command line interface to the binary and remove parts that were hardcoded. new --help is: ``` pslink 0.1.0 Dietrich <dietrich@teilgedanken.de> A simple webservice that allows registered users to create short links including qr-codes. Anyone can visit the shortened links. This is an ideal setup for small busines or for publishing papers. USAGE: pslink [OPTIONS] [SUBCOMMAND] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: --db <database> The path of the sqlite database [env: PSLINK_DATABASE=] [default: links.db] -i, --hostip <internal_ip> The host (ip) that will run the pslink service [env: PSLINK_IP=] [default: localhost] -p, --port <port> The port the pslink service will run on [env: PSLINK_PORT=] [default: 8080] -t, --protocol <protocol> The protocol that is used in the qr-codes (http results in slightly smaller codes in some cases) [env: PSLINK_PROTOCOL=] [default: http] [possible values: http, https] -u, --public-url <public_url> The host url or the page that will be part of the short urls. [env: PSLINK_PUBLIC_URL=] [default: localhost:8080] --secret <secret> The secret that is used to encrypt the password database keep this as inacessable as possible. As commandlineparameters are visible to all users it is not wise to use this as a commandline parameter but rather as an environment variable. [env: PSLINK_SECRET=] [default: ] SUBCOMMANDS: runserver Run the server create-admin Create an admin user. generate-env Generate an .env file template using default settings and exit migrate-database Apply any pending migrations and exit help Prints this message or the help of the given subcommand(s) ```
2021-03-07 19:14:34 +01:00
rand="0.8"
rpassword = "5.0"
clap = "2.33"
2021-02-04 15:07:55 +01:00
[build-dependencies]
actix-web-static-files = "3.0"
# optimize for size at cost of compilation speed.
[profile.release]
2021-03-15 14:06:28 +01:00
lto = true
2021-03-21 08:31:47 +01:00
#codegen-units = 1