Skip to content

Commit

Permalink
Merge pull request #14 from fpco/cargo-lock
Browse files Browse the repository at this point in the history
Add Cargo.lock to make distributing the binary easier
  • Loading branch information
psibi authored Oct 4, 2023
2 parents aaf2d7a + d57d050 commit 7b867ba
Show file tree
Hide file tree
Showing 7 changed files with 184 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/target
/Cargo.lock
/etc/simple
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# v0.1.1 (Unreleased)
# v0.1.1

- Fix cargo metadata
- Add Cargo.lock to make packaging easier for Linux distributsions.

# v0.1.0

Expand Down
174 changes: 174 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ members = [
"pid1",
"pid1-exe",
]
resolver = "2"

[profile.release]
opt-level = 'z' # Optimize for size.
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ This repository consists of two packages:
## pid1 Library Usage

This library is used to simplify Rust deployment in a containerized
environment. Instead of using binaries like [Haskell's pid1](https://github.com/fpco/pid1-rs/actions/workflows/rust.yml)) or
[tini](https://github.com/krallin/tini) in your container, you can use this crate directly.
environment. Instead of using binaries like [Haskell's
pid1](https://github.com/fpco/pid1) or
[tini](https://github.com/krallin/tini) in your container, you can use
this crate directly.

You must ensure that the `launch` method is the first statement in
your `main` function:
Expand Down
4 changes: 2 additions & 2 deletions pid1-exe/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pid1-exe"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
readme = "../README.md"
homepage = "https://github.com/fpco/pid1-rs"
Expand All @@ -12,7 +12,7 @@ categories = ["command-line-utilities"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
pid1 = { path = "../pid1", version = "0.1.0" }
pid1 = { path = "../pid1", version = "0.1.1" }
signal-hook = "0.3.17"
clap = { version = "4.4.6", default-features = false, features = ["std", "derive", "help"]}

Expand Down
2 changes: 1 addition & 1 deletion pid1/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pid1"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
readme = "../README.md"
homepage = "https://github.com/fpco/pid1-rs"
Expand Down

0 comments on commit 7b867ba

Please sign in to comment.