Distribute Lemmy via crates.io

This commit is contained in:
Felix Ableitner 2021-07-24 11:55:56 +02:00
parent 9d936a3d85
commit af6aa3c0bf
17 changed files with 147 additions and 97 deletions

30
Cargo.lock generated
View file

@ -1550,7 +1550,7 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]] [[package]]
name = "lemmy_api" name = "lemmy_api"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"actix", "actix",
"actix-rt", "actix-rt",
@ -1595,7 +1595,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_api_common" name = "lemmy_api_common"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"actix-web", "actix-web",
"chrono", "chrono",
@ -1614,7 +1614,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_api_crud" name = "lemmy_api_crud"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"actix", "actix",
"actix-rt", "actix-rt",
@ -1658,7 +1658,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_apub" name = "lemmy_apub"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"activitystreams", "activitystreams",
"activitystreams-ext", "activitystreams-ext",
@ -1706,7 +1706,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_apub_lib" name = "lemmy_apub_lib"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"activitystreams", "activitystreams",
"activitystreams-ext", "activitystreams-ext",
@ -1721,7 +1721,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_apub_lib_derive" name = "lemmy_apub_lib_derive"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"proc-macro2 1.0.27", "proc-macro2 1.0.27",
"quote 1.0.9", "quote 1.0.9",
@ -1731,7 +1731,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_db_queries" name = "lemmy_db_queries"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"bcrypt", "bcrypt",
"chrono", "chrono",
@ -1753,7 +1753,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_db_schema" name = "lemmy_db_schema"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"chrono", "chrono",
"diesel", "diesel",
@ -1766,7 +1766,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_db_views" name = "lemmy_db_views"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"diesel", "diesel",
"lemmy_db_queries", "lemmy_db_queries",
@ -1779,7 +1779,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_db_views_actor" name = "lemmy_db_views_actor"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"diesel", "diesel",
"lemmy_db_queries", "lemmy_db_queries",
@ -1789,7 +1789,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_db_views_moderator" name = "lemmy_db_views_moderator"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"diesel", "diesel",
"lemmy_db_queries", "lemmy_db_queries",
@ -1799,7 +1799,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_routes" name = "lemmy_routes"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"actix", "actix",
"actix-web", "actix-web",
@ -1826,7 +1826,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_server" name = "lemmy_server"
version = "0.0.1" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"activitystreams", "activitystreams",
"actix", "actix",
@ -1864,7 +1864,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_utils" name = "lemmy_utils"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"actix-rt", "actix-rt",
"actix-web", "actix-web",
@ -1897,7 +1897,7 @@ dependencies = [
[[package]] [[package]]
name = "lemmy_websocket" name = "lemmy_websocket"
version = "0.1.0" version = "0.11.3-rc.5"
dependencies = [ dependencies = [
"actix", "actix",
"actix-web", "actix-web",

View file

@ -1,7 +1,11 @@
[package] [package]
name = "lemmy_server" name = "lemmy_server"
version = "0.0.1" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
homepage = "https://join-lemmy.org/"
license = "AGPL-3.0"
documentation = "https://join-lemmy.org/docs/en/index.html"
[lib] [lib]
doctest = false doctest = false
@ -28,18 +32,18 @@ members = [
] ]
[dependencies] [dependencies]
lemmy_api = { path = "./crates/api" } lemmy_api = { version = "0.11.3-rc.5", path = "./crates/api" }
lemmy_api_crud = { path = "./crates/api_crud" } lemmy_api_crud = { version = "0.11.3-rc.5", path = "./crates/api_crud" }
lemmy_apub = { path = "./crates/apub" } lemmy_apub = { version = "0.11.3-rc.5", path = "./crates/apub" }
lemmy_utils = { path = "./crates/utils" } lemmy_utils = { version = "0.11.3-rc.5", path = "./crates/utils" }
lemmy_db_schema = { path = "./crates/db_schema" } lemmy_db_schema = { version = "0.11.3-rc.5", path = "./crates/db_schema" }
lemmy_db_queries = { path = "./crates/db_queries" } lemmy_db_queries = { version = "0.11.3-rc.5", path = "./crates/db_queries" }
lemmy_db_views = { path = "./crates/db_views" } lemmy_db_views = { version = "0.11.3-rc.5", path = "./crates/db_views" }
lemmy_db_views_moderator = { path = "./crates/db_views_moderator" } lemmy_db_views_moderator = { version = "0.11.3-rc.5", path = "./crates/db_views_moderator" }
lemmy_db_views_actor = { path = "./crates/db_views_actor" } lemmy_db_views_actor = { version = "0.11.3-rc.5", path = "./crates/db_views_actor" }
lemmy_api_common = { path = "crates/api_common" } lemmy_api_common = { version = "0.11.3-rc.5", path = "crates/api_common" }
lemmy_websocket = { path = "./crates/websocket" } lemmy_websocket = { version = "0.11.3-rc.5", path = "./crates/websocket" }
lemmy_routes = { path = "./crates/routes" } lemmy_routes = { version = "0.11.3-rc.5", path = "./crates/routes" }
diesel = "1.4.7" diesel = "1.4.7"
diesel_migrations = "1.4.0" diesel_migrations = "1.4.0"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }

View file

@ -1,7 +1,9 @@
[package] [package]
name = "lemmy_api" name = "lemmy_api"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[lib] [lib]
name = "lemmy_api" name = "lemmy_api"
@ -9,15 +11,15 @@ path = "src/lib.rs"
doctest = false doctest = false
[dependencies] [dependencies]
lemmy_apub = { path = "../apub" } lemmy_apub = { version = "0.11.3-rc.5", path = "../apub" }
lemmy_utils = { path = "../utils" } lemmy_utils = { version = "0.11.3-rc.5", path = "../utils" }
lemmy_db_queries = { path = "../db_queries" } lemmy_db_queries = { version = "0.11.3-rc.5", path = "../db_queries" }
lemmy_db_schema = { path = "../db_schema" } lemmy_db_schema = { version = "0.11.3-rc.5", path = "../db_schema" }
lemmy_db_views = { path = "../db_views" } lemmy_db_views = { version = "0.11.3-rc.5", path = "../db_views" }
lemmy_db_views_moderator = { path = "../db_views_moderator" } lemmy_db_views_moderator = { version = "0.11.3-rc.5", path = "../db_views_moderator" }
lemmy_db_views_actor = { path = "../db_views_actor" } lemmy_db_views_actor = { version = "0.11.3-rc.5", path = "../db_views_actor" }
lemmy_api_common = { path = "../api_common" } lemmy_api_common = { version = "0.11.3-rc.5", path = "../api_common" }
lemmy_websocket = { path = "../websocket" } lemmy_websocket = { version = "0.11.3-rc.5", path = "../websocket" }
diesel = "1.4.7" diesel = "1.4.7"
bcrypt = "0.10.0" bcrypt = "0.10.0"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }

View file

@ -1,7 +1,9 @@
[package] [package]
name = "lemmy_api_common" name = "lemmy_api_common"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[lib] [lib]
name = "lemmy_api_common" name = "lemmy_api_common"
@ -9,12 +11,12 @@ path = "src/lib.rs"
doctest = false doctest = false
[dependencies] [dependencies]
lemmy_db_queries = { path = "../db_queries" } lemmy_db_queries = { version = "0.11.3-rc.5", path = "../db_queries" }
lemmy_db_views = { path = "../db_views" } lemmy_db_views = { version = "0.11.3-rc.5", path = "../db_views" }
lemmy_db_views_moderator = { path = "../db_views_moderator" } lemmy_db_views_moderator = { version = "0.11.3-rc.5", path = "../db_views_moderator" }
lemmy_db_views_actor = { path = "../db_views_actor" } lemmy_db_views_actor = { version = "0.11.3-rc.5", path = "../db_views_actor" }
lemmy_db_schema = { path = "../db_schema" } lemmy_db_schema = { version = "0.11.3-rc.5", path = "../db_schema" }
lemmy_utils = { path = "../utils" } lemmy_utils = { version = "0.11.3-rc.5", path = "../utils" }
serde = { version = "1.0.126", features = ["derive"] } serde = { version = "1.0.126", features = ["derive"] }
log = "0.4.14" log = "0.4.14"
diesel = "1.4.7" diesel = "1.4.7"

View file

@ -1,18 +1,20 @@
[package] [package]
name = "lemmy_api_crud" name = "lemmy_api_crud"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[dependencies] [dependencies]
lemmy_apub = { path = "../apub" } lemmy_apub = { version = "0.11.3-rc.5", path = "../apub" }
lemmy_utils = { path = "../utils" } lemmy_utils = { version = "0.11.3-rc.5", path = "../utils" }
lemmy_db_queries = { path = "../db_queries" } lemmy_db_queries = { version = "0.11.3-rc.5", path = "../db_queries" }
lemmy_db_schema = { path = "../db_schema" } lemmy_db_schema = { version = "0.11.3-rc.5", path = "../db_schema" }
lemmy_db_views = { path = "../db_views" } lemmy_db_views = { version = "0.11.3-rc.5", path = "../db_views" }
lemmy_db_views_moderator = { path = "../db_views_moderator" } lemmy_db_views_moderator = { version = "0.11.3-rc.5", path = "../db_views_moderator" }
lemmy_db_views_actor = { path = "../db_views_actor" } lemmy_db_views_actor = { version = "0.11.3-rc.5", path = "../db_views_actor" }
lemmy_api_common = { path = "../api_common" } lemmy_api_common = { version = "0.11.3-rc.5", path = "../api_common" }
lemmy_websocket = { path = "../websocket" } lemmy_websocket = { version = "0.11.3-rc.5", path = "../websocket" }
diesel = "1.4.7" diesel = "1.4.7"
bcrypt = "0.10.0" bcrypt = "0.10.0"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }

View file

@ -1,7 +1,9 @@
[package] [package]
name = "lemmy_apub" name = "lemmy_apub"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[lib] [lib]
name = "lemmy_apub" name = "lemmy_apub"
@ -9,14 +11,14 @@ path = "src/lib.rs"
doctest = false doctest = false
[dependencies] [dependencies]
lemmy_utils = { path = "../utils" } lemmy_utils = { version = "0.11.3-rc.5", path = "../utils" }
lemmy_apub_lib = { path = "../apub_lib" } lemmy_apub_lib = { version = "0.11.3-rc.5", path = "../apub_lib" }
lemmy_db_queries = { path = "../db_queries" } lemmy_db_queries = { version = "0.11.3-rc.5", path = "../db_queries" }
lemmy_db_schema = { path = "../db_schema" } lemmy_db_schema = { version = "0.11.3-rc.5", path = "../db_schema" }
lemmy_db_views = { path = "../db_views" } lemmy_db_views = { version = "0.11.3-rc.5", path = "../db_views" }
lemmy_db_views_actor = { path = "../db_views_actor" } lemmy_db_views_actor = { version = "0.11.3-rc.5", path = "../db_views_actor" }
lemmy_api_common = { path = "../api_common" } lemmy_api_common = { version = "0.11.3-rc.5", path = "../api_common" }
lemmy_websocket = { path = "../websocket" } lemmy_websocket = { version = "0.11.3-rc.5", path = "../websocket" }
diesel = "1.4.7" diesel = "1.4.7"
activitystreams = "0.7.0-alpha.11" activitystreams = "0.7.0-alpha.11"
activitystreams-ext = "0.1.0-alpha.2" activitystreams-ext = "0.1.0-alpha.2"

View file

@ -1,12 +1,14 @@
[package] [package]
name = "lemmy_apub_lib" name = "lemmy_apub_lib"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[dependencies] [dependencies]
lemmy_utils = { path = "../utils" } lemmy_utils = { version = "0.11.3-rc.5", path = "../utils" }
lemmy_websocket = { path = "../websocket" } lemmy_websocket = { version = "0.11.3-rc.5", path = "../websocket" }
lemmy_apub_lib_derive = { path = "../apub_lib_derive" } lemmy_apub_lib_derive = { version = "0.11.3-rc.5", path = "../apub_lib_derive" }
activitystreams = "0.7.0-alpha.11" activitystreams = "0.7.0-alpha.11"
activitystreams-ext = "0.1.0-alpha.2" activitystreams-ext = "0.1.0-alpha.2"
serde = { version = "1.0.123", features = ["derive"] } serde = { version = "1.0.123", features = ["derive"] }

View file

@ -1,7 +1,9 @@
[package] [package]
name = "lemmy_apub_lib_derive" name = "lemmy_apub_lib_derive"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[lib] [lib]
proc-macro = true proc-macro = true
@ -12,4 +14,4 @@ trybuild = { version = "1.0", features = ["diff"] }
[dependencies] [dependencies]
proc-macro2 = "1.0" proc-macro2 = "1.0"
syn = "1.0" syn = "1.0"
quote = "1.0" quote = "1.0"

View file

@ -1,7 +1,9 @@
[package] [package]
name = "lemmy_db_queries" name = "lemmy_db_queries"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[lib] [lib]
name = "lemmy_db_queries" name = "lemmy_db_queries"
@ -9,8 +11,8 @@ path = "src/lib.rs"
doctest = false doctest = false
[dependencies] [dependencies]
lemmy_utils = { path = "../utils" } lemmy_utils = { version = "0.11.3-rc.5", path = "../utils" }
lemmy_db_schema = { path = "../db_schema" } lemmy_db_schema = { version = "0.11.3-rc.5", path = "../db_schema" }
diesel = { version = "1.4.7", features = ["postgres","chrono","r2d2","serde_json"] } diesel = { version = "1.4.7", features = ["postgres","chrono","r2d2","serde_json"] }
diesel_migrations = "1.4.0" diesel_migrations = "1.4.0"
chrono = { version = "0.4.19", features = ["serde"] } chrono = { version = "0.4.19", features = ["serde"] }

View file

@ -1,7 +1,9 @@
[package] [package]
name = "lemmy_db_schema" name = "lemmy_db_schema"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[lib] [lib]
doctest = false doctest = false

View file

@ -1,14 +1,16 @@
[package] [package]
name = "lemmy_db_views" name = "lemmy_db_views"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[lib] [lib]
doctest = false doctest = false
[dependencies] [dependencies]
lemmy_db_queries = { path = "../db_queries" } lemmy_db_queries = { version = "0.11.3-rc.5", path = "../db_queries" }
lemmy_db_schema = { path = "../db_schema" } lemmy_db_schema = { version = "0.11.3-rc.5", path = "../db_schema" }
diesel = { version = "1.4.7", features = ["postgres","chrono","r2d2","serde_json"] } diesel = { version = "1.4.7", features = ["postgres","chrono","r2d2","serde_json"] }
serde = { version = "1.0.126", features = ["derive"] } serde = { version = "1.0.126", features = ["derive"] }
log = "0.4.14" log = "0.4.14"

View file

@ -1,13 +1,15 @@
[package] [package]
name = "lemmy_db_views_actor" name = "lemmy_db_views_actor"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[lib] [lib]
doctest = false doctest = false
[dependencies] [dependencies]
lemmy_db_queries = { path = "../db_queries" } lemmy_db_queries = { version = "0.11.3-rc.5", path = "../db_queries" }
lemmy_db_schema = { path = "../db_schema" } lemmy_db_schema = { version = "0.11.3-rc.5", path = "../db_schema" }
diesel = { version = "1.4.7", features = ["postgres","chrono","r2d2","serde_json"] } diesel = { version = "1.4.7", features = ["postgres","chrono","r2d2","serde_json"] }
serde = { version = "1.0.126", features = ["derive"] } serde = { version = "1.0.126", features = ["derive"] }

View file

@ -1,13 +1,15 @@
[package] [package]
name = "lemmy_db_views_moderator" name = "lemmy_db_views_moderator"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[lib] [lib]
doctest = false doctest = false
[dependencies] [dependencies]
lemmy_db_queries = { path = "../db_queries" } lemmy_db_queries = { version = "0.11.3-rc.5", path = "../db_queries" }
lemmy_db_schema = { path = "../db_schema" } lemmy_db_schema = { version = "0.11.3-rc.5", path = "../db_schema" }
diesel = { version = "1.4.7", features = ["postgres","chrono","r2d2","serde_json"] } diesel = { version = "1.4.7", features = ["postgres","chrono","r2d2","serde_json"] }
serde = { version = "1.0.126", features = ["derive"] } serde = { version = "1.0.126", features = ["derive"] }

View file

@ -1,19 +1,21 @@
[package] [package]
name = "lemmy_routes" name = "lemmy_routes"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[lib] [lib]
doctest = false doctest = false
[dependencies] [dependencies]
lemmy_utils = { path = "../utils" } lemmy_utils = { version = "0.11.3-rc.5", path = "../utils" }
lemmy_websocket = { path = "../websocket" } lemmy_websocket = { version = "0.11.3-rc.5", path = "../websocket" }
lemmy_db_queries = { path = "../db_queries" } lemmy_db_queries = { version = "0.11.3-rc.5", path = "../db_queries" }
lemmy_db_views = { path = "../db_views" } lemmy_db_views = { version = "0.11.3-rc.5", path = "../db_views" }
lemmy_db_views_actor = { path = "../db_views_actor" } lemmy_db_views_actor = { version = "0.11.3-rc.5", path = "../db_views_actor" }
lemmy_db_schema = { path = "../db_schema" } lemmy_db_schema = { version = "0.11.3-rc.5", path = "../db_schema" }
lemmy_api_common = { path = "../api_common" } lemmy_api_common = { version = "0.11.3-rc.5", path = "../api_common" }
diesel = "1.4.7" diesel = "1.4.7"
actix = "0.12.0" actix = "0.12.0"
actix-web = { version = "4.0.0-beta.8", default-features = false, features = ["rustls"] } actix-web = { version = "4.0.0-beta.8", default-features = false, features = ["rustls"] }

View file

@ -1,7 +1,9 @@
[package] [package]
name = "lemmy_utils" name = "lemmy_utils"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[lib] [lib]
name = "lemmy_utils" name = "lemmy_utils"

View file

@ -1,7 +1,9 @@
[package] [package]
name = "lemmy_websocket" name = "lemmy_websocket"
version = "0.1.0" version = "0.11.3-rc.5"
edition = "2018" edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[lib] [lib]
name = "lemmy_websocket" name = "lemmy_websocket"
@ -9,10 +11,10 @@ path = "src/lib.rs"
doctest = false doctest = false
[dependencies] [dependencies]
lemmy_utils = { path = "../utils" } lemmy_utils = { version = "0.11.3-rc.5", path = "../utils" }
lemmy_api_common = { path = "../api_common" } lemmy_api_common = { version = "0.11.3-rc.5", path = "../api_common" }
lemmy_db_queries = { path = "../db_queries" } lemmy_db_queries = { version = "0.11.3-rc.5", path = "../db_queries" }
lemmy_db_schema = { path = "../db_schema" } lemmy_db_schema = { version = "0.11.3-rc.5", path = "../db_schema" }
reqwest = { version = "0.11.4", features = ["json"] } reqwest = { version = "0.11.4", features = ["json"] }
log = "0.4.14" log = "0.4.14"
rand = "0.8.4" rand = "0.8.4"

18
scripts/cargo-publish.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
set -e
# This script relies on https://github.com/pksunkara/cargo-workspaces
OLD_VERSION=0.11.3-rc.4
NEW_VERSION=0.11.3-rc.5
ROOT=$(pwd)
for DIR in crates/*; do
cd $DIR
pwd
sed -i "s/{ version = \"$OLD_VERSION\", path/{ version = \"$NEW_VERSION\", path/g" Cargo.toml
cd $ROOT
done
sed -i "s/{ version = \"$OLD_VERSION\", path/{ version = \"$NEW_VERSION\", path/g" Cargo.toml
cp -r migrations crates/db_queries/
cargo workspace publish --no-git-commit --allow-dirty --skip-published custom "$NEW_VERSION"
rm -r crates/db_queries/migrations/