gbdev / rgbobj Goto Github PK
View Code? Open in Web Editor NEWA Rust program for humans to inspect RGBDS object files
License: MIT License
A Rust program for humans to inspect RGBDS object files
License: MIT License
The version is printed as its ASCII value, e.g. "RGBDS object v57 revision 10" for version 9 (since '9'
is 57).
clippy
on commitTo better promote/show off the tool, it would be cool to add some example usage/output
Right now it's hard-coded as 9. After the next rgbds-obj release is published, it will expose an object.version()
field which we can use here.
In Homebrew, we saw a thread panic when testing a rebuild of rgbds
/rgbobj
during a rust
update (Homebrew/homebrew-core#98823)
==>/usr/local/Cellar/rgbds/0.5.2/bin/rgbobj -A -s data -p data output.o
thread 'main' panicked at 'Must use `Arg::allow_invalid_utf8` with `_os` lookups at `[hash: 754F87C87F12EDF4]`', /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/github.com-1ecc6299db9ec823/clap-3.2.5/src/parser/matches/arg_matches.rs:1732:13
The issue appears to be due to changes in newer clap >= 3.2
(clap-rs/clap#3826). Since the Cargo.toml doesn't specify an upper bound and there is no Cargo.lock, the build picks up newer version (3.2.5) and causes this issue at runtime.
The actual issue for thread panic should probably be fixed, but in mean time, it would be nice to provide a Cargo.lock and/or update Cargo.toml with an upper bound (3.0.0-beta.2, <3.2
) or fixed (=3.0.0-beta.2
) restriction to allow reproducible build.
kayshinonome@latitude-e6430 ~/Code/rgbobj $ cargo b
Compiling clap v3.0.0-beta.2
error[E0658]: arbitrary expressions in key-value attributes are unstable
--> /home/kayshinonome/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-3.0.0-beta.2/src/lib.rs:8:10
|
8 | #![doc = include_str!("../README.md")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #78835 <https://github.com/rust-lang/rust/issues/78835> for more information
error: aborting due to previous error
For more information about this error, try `rustc --explain E0658`.
error: could not compile `clap`
To learn more, run the command again with --verbose.
kayshinonome@latitude-e6430 ~/Code/rgbobj $
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.