Rename crate to avoid crates.io collision

This commit is contained in:
Aode (lion) 2021-12-28 10:30:48 -06:00
parent 1b3ae4d2c7
commit c91adb4a4b
3 changed files with 105 additions and 87 deletions

View file

@ -28,6 +28,7 @@ trigger:
event: event:
- push - push
- pull_request - pull_request
- tag
--- ---
@ -60,6 +61,7 @@ trigger:
event: event:
- push - push
- pull_request - pull_request
- tag
--- ---
@ -145,6 +147,10 @@ steps:
files: files:
- relay-linux-amd64 - relay-linux-amd64
depends_on:
- clippy
- tests
trigger: trigger:
event: event:
- tag - tag
@ -233,6 +239,10 @@ steps:
files: files:
- relay-linux-arm64v8 - relay-linux-arm64v8
depends_on:
- clippy
- tests
trigger: trigger:
event: event:
- tag - tag
@ -321,6 +331,10 @@ steps:
files: files:
- relay-linux-arm32v7 - relay-linux-arm32v7
depends_on:
- clippy
- tests
trigger: trigger:
event: event:
- tag - tag
@ -367,41 +381,41 @@ trigger:
event: event:
- tag - tag
# --- ---
#
# kind: pipeline kind: pipeline
# type: docker type: docker
# name: publish-crate name: publish-crate
#
# platform: platform:
# arch: amd64 arch: amd64
#
# clone: clone:
# disable: true disable: true
#
# steps: steps:
# - name: clone - name: clone
# image: alpine/git:latest image: alpine/git:latest
# user: root user: root
# commands: commands:
# - git clone $DRONE_GIT_HTTP_URL . - git clone $DRONE_GIT_HTTP_URL .
# - git checkout $DRONE_COMMIT - git checkout $DRONE_COMMIT
# - chown -R 991:991 . - chown -R 991:991 .
#
# - name: publish - name: publish
# image: asonix/rust-builder:latest-linux-amd64 image: asonix/rust-builder:latest-linux-amd64
# pull: always pull: always
# environment: environment:
# CRATES_IO_TOKEN: CRATES_IO_TOKEN:
# from_secret: crates_io_token from_secret: crates_io_token
# commands: commands:
# - cargo publish --token $CRATES_IO_TOKEN - cargo publish --token $CRATES_IO_TOKEN
#
# depends_on: depends_on:
# - build-amd64 - build-amd64
# - build-arm64v8 - build-arm64v8
# - build-arm32v7 - build-arm32v7
#
# trigger: trigger:
# event: event:
# - tag - tag

96
Cargo.lock generated
View file

@ -304,6 +304,54 @@ version = "1.0.52"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "84450d0b4a8bd1ba4144ce8ce718fbc5d071358b1e5384bace6536b3d1f2d5b3" checksum = "84450d0b4a8bd1ba4144ce8ce718fbc5d071358b1e5384bace6536b3d1f2d5b3"
[[package]]
name = "ap-relay"
version = "0.3.11"
dependencies = [
"activitystreams",
"activitystreams-ext",
"actix-rt",
"actix-web",
"actix-webfinger",
"ammonia",
"anyhow",
"async-rwlock",
"awc",
"background-jobs",
"base64",
"chrono",
"config",
"console-subscriber",
"dashmap",
"dotenv",
"futures-util",
"http-signature-normalization-actix",
"lru",
"mime",
"opentelemetry",
"opentelemetry-otlp",
"rand 0.8.4",
"rsa",
"rsa-magic-public-key",
"ructe",
"serde 1.0.132",
"serde_json",
"sha2",
"sled",
"structopt",
"thiserror",
"toml",
"tracing",
"tracing-actix-web",
"tracing-awc",
"tracing-error",
"tracing-futures",
"tracing-log",
"tracing-opentelemetry",
"tracing-subscriber",
"uuid",
]
[[package]] [[package]]
name = "arrayvec" name = "arrayvec"
version = "0.5.2" version = "0.5.2"
@ -2111,54 +2159,6 @@ version = "0.6.25"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b"
[[package]]
name = "relay"
version = "0.3.11"
dependencies = [
"activitystreams",
"activitystreams-ext",
"actix-rt",
"actix-web",
"actix-webfinger",
"ammonia",
"anyhow",
"async-rwlock",
"awc",
"background-jobs",
"base64",
"chrono",
"config",
"console-subscriber",
"dashmap",
"dotenv",
"futures-util",
"http-signature-normalization-actix",
"lru",
"mime",
"opentelemetry",
"opentelemetry-otlp",
"rand 0.8.4",
"rsa",
"rsa-magic-public-key",
"ructe",
"serde 1.0.132",
"serde_json",
"sha2",
"sled",
"structopt",
"thiserror",
"toml",
"tracing",
"tracing-actix-web",
"tracing-awc",
"tracing-error",
"tracing-futures",
"tracing-log",
"tracing-opentelemetry",
"tracing-subscriber",
"uuid",
]
[[package]] [[package]]
name = "remove_dir_all" name = "remove_dir_all"
version = "0.5.3" version = "0.5.3"

View file

@ -1,5 +1,5 @@
[package] [package]
name = "relay" name = "ap-relay"
description = "A simple activitypub relay" description = "A simple activitypub relay"
version = "0.3.11" version = "0.3.11"
authors = ["asonix <asonix@asonix.dog>"] authors = ["asonix <asonix@asonix.dog>"]
@ -10,6 +10,10 @@ keywords = ["activitypub", "relay"]
edition = "2021" edition = "2021"
build = "src/build.rs" build = "src/build.rs"
[[bin]]
name = "relay"
path = "src/main.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]