Skip to content

Commit

Permalink
update cargo_toml dependency (railwayapp#1174)
Browse files Browse the repository at this point in the history
* update cargo_toml dependency

* update msrv to 1.70.0

* update flakes

* add toml config file test
  • Loading branch information
coffee-cup authored Sep 4, 2024
1 parent 1cf93c9 commit 9dcbf78
Show file tree
Hide file tree
Showing 9 changed files with 198 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.60.0
toolchain: 1.70.0
override: true

- uses: Swatinem/rust-cache@v2
Expand Down
145 changes: 115 additions & 30 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
Expand Up @@ -46,7 +46,7 @@ base64 = "0.20.0"
console = { default-features = false, version = "0.15.2" }
box_drawing = "0.1.2"
textwrap = { default-features = false, version = "0.16.0" }
cargo_toml = "0.13.0"
cargo_toml = "0.20.4"
rand = "0.8.5"
path-slash = "0.2.1"
ignore = "0.4.18"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![CI](https://github.com/railwayapp/nixpacks/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/railwayapp/nixpacks/actions/workflows/ci.yml)
[![Crates.io](https://img.shields.io/crates/v/nixpacks)](https://crates.io/crates/nixpacks)
[![Rust: 1.60+](https://img.shields.io/badge/rust-1.60+-93450a)](https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html)
[![Rust: 1.70+](https://img.shields.io/badge/rust-1.70+-93450a)](https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html)

**App source + Nix packages + Docker = Image**

Expand Down
12 changes: 12 additions & 0 deletions examples/config-toml-file/nixpacks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[variables]
HELLO = "hey there"

[phases.setup]
nixPkgs = ["cowsay"]

[phases.custom]
dependsOn = ["setup"]
cmds = ['echo building!']

[start]
cmd = "cowsay ${HELLO}"
Loading

0 comments on commit 9dcbf78

Please sign in to comment.