PyO3 / maturin-action

GitHub Action to install and run a custom maturin command with built-in support for cross compilation
MIT License
128 stars 35 forks source link

error: 'rustfmt' is not installed for the toolchain 'stable-x86_64-unknown-linux-gnu' #33

Closed 007vasy closed 2 years ago

007vasy commented 2 years ago

hi thanks for the previous help, now it just stopping on this step (the maturin works flawlessly on local ubuntu 20.04)

can you help me with this issue or this needs other solution?

full error:

error: failed to run custom build command for `solana-storage-proto v1.10.0`

Caused by:
  process didn't exit successfully: `/home/runner/work/solana-bigtable-decode/solana-bigtable-decode/target/release/build/solana-storage-proto-766b0050c1859d92/build-script-build` (exit status: 1)
  --- stdout
  cargo::rerun-if-changed=proto/confirmed_block.proto
  cargo::rerun-if-changed=proto/transaction_by_addr.proto

  --- stderr
  error: 'rustfmt' is not installed for the toolchain 'stable-x86_64-unknown-linux-gnu'
  To install, run `rustup component add rustfmt`
warning: build failed, waiting for other jobs to finish...
error: build failed
💥 maturin failed
  Caused by: Failed to build a native library through cargo
  Caused by: Cargo build finished with "exit status: 101": `cargo rustc --manifest-path Cargo.toml --message-format json --release --lib --`

Cargo.toml ->

[package]
name = "solana-bigtable-decode"
version = "1.0.0"
edition = "2021"
authors = ["BenFerrum"]

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

[dependencies]
pyo3 = { version = "0.15.1", features = ["extension-module"] }
solana-storage-bigtable = "1.10.0"
solana-transaction-status = "1.10.0"
bincode = "1.3.3"
enum-iterator = "0.7.0"
serde = "*"
serde_json = "*"
futures = "0.3.21"
solana-sdk = "1.10.0"
tokio = { version = "1.17.0", features = ["full"] }
#cpython = "*"

[features]
extension-module = ["pyo3/extension-module"]
default = ["extension-module"]
messense commented 2 years ago

Add rustup-components: rustfmt argument to maturin- action.

007vasy commented 2 years ago

thanks, it worked!