Skip to content

Commit

Permalink
Merge pull request #8 from 0xPolygonZero/zbrown/fix-name-collision
Browse files Browse the repository at this point in the history
Rename to `paladin-core` to fix crates.io name collision
  • Loading branch information
cpubot authored Oct 23, 2023
2 parents 2538664 + 3941b75 commit 2375d47
Show file tree
Hide file tree
Showing 32 changed files with 49 additions and 36 deletions.
14 changes: 12 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["paladin", "paladin-opkind-derive"]
members = ["paladin-core", "paladin-opkind-derive"]
resolver = "2"

[workspace.package]
Expand Down
28 changes: 15 additions & 13 deletions examples/hello-world-rabbitmq/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions examples/hello-world-rabbitmq/leader.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@ FROM rust:slim-bullseye as builder

RUN \
mkdir -p paladin-opkind-derive/src && touch paladin-opkind-derive/src/lib.rs && \
mkdir -p paladin/src && touch paladin/src/lib.rs && \
mkdir -p ops/src && touch ops/src/lib.rs && \
mkdir -p leader/src && echo "fn main() {println!(\"YO!\");}" > leader/src/main.rs
mkdir -p paladin-core/src && touch paladin-core/src/lib.rs && \
mkdir -p ops/src && touch ops/src/lib.rs && \
mkdir -p leader/src && echo "fn main() {println!(\"YO!\");}" > leader/src/main.rs

COPY Cargo.toml .
RUN sed -i "2s/.*/members = [\"paladin\", \"paladin-opkind-derive\", \"ops\", \"leader\"]/" Cargo.toml
RUN sed -i "2s/.*/members = [\"paladin-core\", \"paladin-opkind-derive\", \"ops\", \"leader\"]/" Cargo.toml
COPY Cargo.lock .

COPY paladin-opkind-derive/Cargo.toml ./paladin-opkind-derive/Cargo.toml
COPY paladin/Cargo.toml ./paladin/Cargo.toml
COPY paladin-core/Cargo.toml ./paladin-core/Cargo.toml
COPY examples/hello-world-rabbitmq/ops/Cargo.toml ./ops/Cargo.toml
COPY examples/hello-world-rabbitmq/leader/Cargo.toml ./leader/Cargo.toml

RUN cargo build --release --bin leader

COPY paladin-opkind-derive ./paladin-opkind-derive
COPY paladin ./paladin
COPY paladin-core ./paladin-core
COPY examples/hello-world-rabbitmq/ops ./ops
COPY examples/hello-world-rabbitmq/leader ./leader
RUN \
touch paladin-opkind-derive/src/lib.rs && \
touch paladin/src/lib.rs && \
touch paladin-core/src/lib.rs && \
touch ops/src/lib.rs && \
touch leader/src/main.rs

Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world-rabbitmq/leader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ tokio = { version = "1.32.0", features = ["full"] }
futures = "0.3.28"
clap = { version = "4.4.2", features = ["derive", "env"] }

paladin = { path = "../../../paladin" }
paladin-core = { path = "../../../paladin-core" }
ops = { path = "../ops" }
2 changes: 1 addition & 1 deletion examples/hello-world-rabbitmq/ops/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ anyhow = "1.0.75"
futures = "0.3.28"
async-trait = "0.1.73"

paladin = { path = "../../../paladin" }
paladin-core = { path = "../../../paladin-core" }
14 changes: 7 additions & 7 deletions examples/hello-world-rabbitmq/worker.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@ FROM rust:slim-bullseye as builder

RUN \
mkdir -p paladin-opkind-derive/src && touch paladin-opkind-derive/src/lib.rs && \
mkdir -p paladin/src && touch paladin/src/lib.rs && \
mkdir -p ops/src && touch ops/src/lib.rs && \
mkdir -p worker/src && echo "fn main() {}" > worker/src/main.rs
mkdir -p paladin-core/src && touch paladin-core/src/lib.rs && \
mkdir -p ops/src && touch ops/src/lib.rs && \
mkdir -p worker/src && echo "fn main() {}" > worker/src/main.rs

COPY Cargo.toml .
RUN sed -i "2s/.*/members = [\"paladin\", \"paladin-opkind-derive\", \"ops\", \"worker\"]/" Cargo.toml
RUN sed -i "2s/.*/members = [\"paladin-core\", \"paladin-opkind-derive\", \"ops\", \"worker\"]/" Cargo.toml
COPY Cargo.lock .

COPY paladin-opkind-derive/Cargo.toml ./paladin-opkind-derive/Cargo.toml
COPY paladin/Cargo.toml ./paladin/Cargo.toml
COPY paladin-core/Cargo.toml ./paladin-core/Cargo.toml
COPY examples/hello-world-rabbitmq/ops/Cargo.toml ./ops/Cargo.toml
COPY examples/hello-world-rabbitmq/worker/Cargo.toml ./worker/Cargo.toml

RUN cargo build --release --bin worker

COPY paladin-opkind-derive ./paladin-opkind-derive
COPY paladin ./paladin
COPY paladin-core ./paladin-core
COPY examples/hello-world-rabbitmq/ops ./ops
COPY examples/hello-world-rabbitmq/worker ./worker
RUN \
touch paladin-opkind-derive/src/lib.rs && \
touch paladin/src/lib.rs && \
touch paladin-core/src/lib.rs && \
touch ops/src/lib.rs && \
touch worker/src/main.rs

Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world-rabbitmq/worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ tokio = { version = "1.32.0", features = ["full"] }
futures = "0.3.28"
clap = { version = "4.4.2", features = ["derive", "env"] }

paladin = { path = "../../../paladin" }
paladin-core = { path = "../../../paladin-core" }
ops = { path = "../ops" }
7 changes: 4 additions & 3 deletions paladin/Cargo.toml → paladin-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "paladin"
name = "paladin-core"
version = "0.1.0"
description = "A Rust distributed algorithm toolkit. Write distributed algorithms without the complexities of distributed systems programming."
license.workspace = true
Expand All @@ -9,7 +9,8 @@ repository.workspace = true
keywords.workspace = true
categories.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "paladin"

[dependencies]
anyhow = { version = "1.0.75", features = ["backtrace"] }
Expand All @@ -28,7 +29,7 @@ futures = "0.3.28"
uuid = { version = "1.4.1", features = ["v4", "fast-rng"] }
clap = { version = "4.4.2", features = ["derive", "env"] }
pin-project = "1.1.3"
paladin-opkind-derive = { path = "../paladin-opkind-derive" }
paladin-opkind-derive = "0.1.0"

[dev-dependencies]
# Required for certain doc tests which showcase generic numeric operations
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2375d47

Please sign in to comment.