gonejack/html_to_epub

Compile error

Opened this issue · 2 comments

Compiling html_to_epub v0.1.1
error[E0277]: the size for values of type dyn std::error::Error + Send + Sync cannot be known at compilation time
--> /Users/lriley/.cargo/registry/src/github.com-1ecc6299db9ec823/html_to_epub-0.1.1/src/cmd/mod.rs:62:35
|
62 | let doc = Vis::load(&data)?;
| ^ doesn't have a size known at compile-time
|
= help: the trait Sized is not implemented for dyn std::error::Error + Send + Sync
= note: required because of the requirements on the impl of std::error::Error for Box<dyn std::error::Error + Send + Sync>
= note: required because of the requirements on the impl of From<Box<dyn std::error::Error + Send + Sync>> for Box<dyn std::error::Error>
= note: required because of the requirements on the impl of FromResidual<Result<Infallible, Box<dyn std::error::Error + Send + Sync>>> for Result<(), Box<dyn std::error::Error>>

For more information about this error, try rustc --explain E0277.
error: could not compile html_to_epub due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile html_to_epub v0.1.1, intermediate artifacts can be found at /var/folders/b_/wfcn1_mx71bcj3rmvn0_rt2r0000gn/T/cargo-install4hgjhG

Caused by:
build failed

Hi, @analyticd

This issue happens by nothing but rust update, shows me some fragile of rust actually.

Would you like to use a Go version of this tool instead which is more reliable https://github.com/gonejack/html-to-epub

I figured as much but just thought I'd let you know, thank you for responding.