fermyon / spin-trigger-cron

Apache License 2.0
7 stars 8 forks source link

spin-trigger-cron is not compiling with # rustc --version rustc 1.78.0-beta.1 (efd9d2df1 2024-03-18) #8

Closed seungjin closed 6 months ago

seungjin commented 8 months ago
# cargo build --release
error: invalid character `{` in package name: `{{project-name | kebab_case}}`, the first character must be a Unicode XID start character (most letters or `_`)
 --> ../../../.cargo/git/checkouts/spin-91500438ac5656d2/22c2ac5/templates/http-rust/content/Cargo.toml:2:8
  |
2 | name = "{{project-name | kebab_case}}"
  |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
error: invalid character `{` in package name: `{{project-name | kebab_case}}`, the first character must be a Unicode XID start character (most letters or `_`)
 --> ../../../.cargo/git/checkouts/spin-91500438ac5656d2/22c2ac5/templates/redis-rust/content/Cargo.toml:2:8
  |
2 | name = "{{project-name | kebab_case}}"
  |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
    Finished `release` profile [optimized] target(s) in 0.97s

rustc stable works fine which is rustc 1.76.0 (07dca489a 2024-02-04). 1.78 Will be stable on: 2 May, 2024. So it is more like FYI

radu-matei commented 8 months ago

Thanks for the report, @seungjin!

Looking into this.

tpmccallum commented 6 months ago

Also noticed this.

2 | name = "{{project-name | kebab_case}}"

Details:

$ rustc --version
rustc 1.78.0 (9b00956e5 2024-04-29)