Comments (11)
Can you try use git dep for both mupdf & mupdf-sys crates?
[patch.crates-io]
mupdf = { git = "https://github.com/messense/mupdf-rs.git" }
mupdf-sys = { git = "https://github.com/messense/mupdf-rs.git" }
from mupdf-rs.
mupdf = "0"
[patch.crates-io]
mupdf = { git = "https://github.com/messense/mupdf-rs.git" }
mupdf-sys = { git = "https://github.com/messense/mupdf-rs.git" }
cargo fetch
report
Updating git repository `https://github.com/messense/mupdf-rs.git` Updating git submodule `../thirdparty-curl.git` warning: spurious network error (2 tries remaining): unsupported URL protocol; class=Net (12) warning: spurious network error (1 tries remaining): unsupported URL protocol; class=Net (12) error: failed to resolve patches for `https://github.com/rust-lang/crates.io-index` Caused by: failed to load source for dependency `mupdf` Caused by: Unable to update https://github.com/messense/mupdf-rs.git Caused by: failed to update submodule `mupdf-sys/mupdf` Caused by: failed to update submodule `thirdparty/curl` Caused by: failed to fetch submodule `thirdparty/curl` from ../thirdparty-curl.git Caused by: network failure seems to have happened if a proxy or similar is necessary `net.git-fetch-with-cli` may help here https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli Caused by: unsupported URL protocol; class=Net (12)
I run cargo fetch
in another project and it runs well
from mupdf-rs.
It seems that cargo fetch didn't handle relative git submodule path properly.
from mupdf-rs.
from mupdf-rs.
Try clone this repository to your local path and use path dependency instead.
git clone --recursive https://github.com/messense/mupdf-rs.git
[patch.crates-io]
mupdf = { path = "../mupdf-rs" }
mupdf-sys = { path = "../mupdf-rs" }
Replace ../mupdf-rs
with your local clone path.
from mupdf-rs.
Or you can add this repository as a submodule of your git repository, then use a path dependency.
from mupdf-rs.
I see you update a new version 0.4.0, does it fixed this problem?
from mupdf-rs.
Try clone this repository to your local path and use path dependency instead.
git clone --recursive https://github.com/messense/mupdf-rs.git[patch.crates-io] mupdf = { path = "../mupdf-rs" } mupdf-sys = { path = "../mupdf-rs" }Replace
../mupdf-rs
with your local clone path.
it works!
could you release a version to fix this prblem?
from mupdf-rs.
@Sherlock-Holo Just tried it, it doesn't work, because of the crate file size limit of crates.io, I can't package all mupdf's fonts into mupdf-sys crate.
from mupdf-rs.
@Sherlock-Holo Just tried it, it doesn't work, because of the crate file size limit of crates.io, I can't package all mupdf's fonts into mupdf-sys crate.
maybe you can try to create some new crates call mupdf-xx-font, the mupdf-sys import them as optional dependency and create some font features, and then the mupdf add some feature like xx-font, which it depend on mupdf-sys font features, at the end mupdf can enable all font in default feature
from mupdf-rs.
v0.0.5 on crates.io now compiles and runs fine.
from mupdf-rs.
Related Issues (20)
- Run tests with address sanitizers on CI
- Run tests with valgrind on CI
- Switch to msbuild on Windows
- How can I create an indirect reference to an object? HOT 1
- Random panics related to `malloc()` while rendering PDF to PNG HOT 10
- Is there a way to replace the outline of pdf ? HOT 1
- Segmentation fault at page.to_display_list() HOT 4
- Segmentation fault in image_filter_callback/set_image_filter HOT 3
- ink annotation already usable?
- [Bug] Page number is always `0` in `Document`'s `outlines()` method HOT 1
- How to include image in `Page`'s `to_html` or `to_xhtml` method? HOT 1
- bin2coff exists with code 1, executed with invalid path HOT 3
- I can't compile mupdf-rs on Windows 11 HOT 1
- The cost of downloading and compiling libmupdf and libthirdparty is too high. It is recommended to provide precompiled versions. HOT 1
- How to use `Page`'s `to_svg` method?
- Authentication does not work as intended
- Enhance page.rs to support table extraction and title extraction
- Segmentation fault whenever multi-threading with rayon HOT 1
- InvalidData "stream did not contain valid UTF-8" error
- Memory leak when using mupdf-rs:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mupdf-rs.