You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, my package, didyoumean builds a binary called dym with this addition to the Cargo.toml file:
[[bin]]
name = "dym"path = "src/main.rs"
The script fails when running strip as the binary name is not as the script expects. The issue is with line 246 of main.rs: binary.push(&package.name); which assumes that package.name is the same as the produced binary.
I don't know enough about Cargo.toml parsing so I'm not sure how to parse a new field exactly and to change the binary path optionally if that field exists, however I would be glad to work on it if someone could point me in the right direction.
The text was updated successfully, but these errors were encountered:
For example, my package,
didyoumean
builds a binary calleddym
with this addition to theCargo.toml
file:The script fails when running
strip
as the binary name is not as the script expects. The issue is with line 246 of main.rs:binary.push(&package.name);
which assumes thatpackage.name
is the same as the produced binary.I don't know enough about
Cargo.toml
parsing so I'm not sure how to parse a new field exactly and to change the binary path optionally if that field exists, however I would be glad to work on it if someone could point me in the right direction.The text was updated successfully, but these errors were encountered: