PoiScript / docx-rs

A Rust library for parsing and generating docx files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error during compiling

Shell1010 opened this issue · comments

commented

Hi, so I tried using this crate as part of my project and I encountered an error when running cargo run main.rs.

   Compiling cfg-if v1.0.0
   Compiling adler v1.0.2
   Compiling xmlparser v0.13.3
   Compiling byteorder v1.4.3
   Compiling lazy_static v1.4.0
   Compiling libc v0.2.119
   Compiling memchr v2.4.1
   Compiling jetscii v0.4.4
error: generic parameters may not be used in const operations
   --> /home/shell/.cargo/registry/src/github.com-1ecc6299db9ec823/jetscii-0.4.4/src/simd.rs:109:13
    |
109 |             T::CONTROL_BYTE,
    |             ^^^^^^^^^^^^^^^ cannot perform const operation using `T`
    |
    = note: type parameters may not be used in const expressions

error: generic parameters may not be used in const operations
   --> /home/shell/.cargo/registry/src/github.com-1ecc6299db9ec823/jetscii-0.4.4/src/simd.rs:148:13
    |
148 |             T::CONTROL_BYTE,
    |             ^^^^^^^^^^^^^^^ cannot perform const operation using `T`
    |
    = note: type parameters may not be used in const expressions

   Compiling crc32fast v1.3.2
error: could not compile `jetscii` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed

I hope this is enough.

I have the same problem

same here

For now: i solved the issue using :
docx = { git = "https://github.com/notedge/docx-rs", branch = "master" }

commented

For now: i solved the issue using : docx = { git = "https://github.com/notedge/docx-rs", branch = "master" }

I solved with this, thanks