The Your first smart contract tutorial instructs users to compile their miden project with miden build, but this command currently fails with "expected input file".
Compiling with cargo miden build works just fine. I discussed this with @TomasArrachea, and it appears to be an issue with midenup rather than the project itself.
It would be helpful to either fix the miden build command in midenup, or update the tutorial to recommend cargo miden build in the meantime.
How to reproduce it
Create a new project and run miden build in the project directory
miden new my-project
cd my-project/contracts/counter-account
miden build
miden build fails with an "expected input file" error:
info: current toolchain is stable and is installed
error: expected input file
Usage: midenc [OPTIONS] [FILE]
For more information, try '--help'.
Error: failed to execute 'miden build'
Caused by:
'miden build' failed with status 2
Passing an input file explicitly, as the error message suggests, also fails:
$ miden build src/lib.rs
info: current toolchain is stable and is installed
Error: x `rustc` returned an error when compiling the input, see stderr output for
| more details
Error: failed to execute 'miden build src/lib.rs'
Caused by:
'miden build src/lib.rs' failed with status 1
Environment
miden --version output:
The Miden toolchain porcelain:
Environment:
- cargo version: cargo 1.97.0-nightly (eb9b60f1f 2026-04-24).
Midenup:
- midenup + miden version: 0.3.2.
- active toolchain version: 0.15.0.
- midenup revision: .
- midenup was compiled with cargo 1.93.1 (083ac5135 2025-12-15).
The Your first smart contract tutorial instructs users to compile their miden project with
miden build, but this command currently fails with "expected input file".Compiling with
cargo miden buildworks just fine. I discussed this with @TomasArrachea, and it appears to be an issue withmidenuprather than the project itself.It would be helpful to either fix the
miden buildcommand inmidenup, or update the tutorial to recommendcargo miden buildin the meantime.How to reproduce it
Create a new project and run
miden buildin the project directorymiden new my-project cd my-project/contracts/counter-account miden buildmiden buildfails with an "expected input file" error:Passing an input file explicitly, as the error message suggests, also fails:
Environment
miden --versionoutput: