avrd icon indicating copy to clipboard operation
avrd copied to clipboard

Documentation build fail

Open Logarithmus opened this issue 4 years ago • 3 comments

It seems that documentation failed to build for 0.3.0: https://docs.rs/crate/avrd/0.3.0

If you look at the build log, there's a panic with message "Read-only filesystem". I think it's docs.rs problem. But why 0.2.0 built successfully? Is it a regression?

Logarithmus avatar May 02 '20 07:05 Logarithmus

Read-only filesystem

That makes sense - crate currently generates .rs files for the MCU cores in the build.rs script ) (https://github.com/avr-rust/avrd/blob/3e75477d29568e539b13e8c17dea2f2658044eef/build.rs#L29). It is discouraged to generate sources at runtime.

The best solution here would be to adapt the build.rs script into a script that can be run by the crate maintainers to update the autogenerated MCU core files so that they can be added into version control permanently. This will also make crate compilation much faster.

dylanmckay avatar May 14 '20 07:05 dylanmckay

Plenty of crates Use build scripts to generate source code, so I don’t know why this would be a problem.

shepmaster avatar May 18 '20 11:05 shepmaster

Plenty of crates Use build scripts to generate source code, so I don’t know why this would be a problem.

As far as I know, only OUT_DIR is writable.

schulzch avatar Aug 09 '20 06:08 schulzch