Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use with cargo? #97

Closed
martindurant opened this issue Mar 31, 2023 · 2 comments
Closed

use with cargo? #97

martindurant opened this issue Mar 31, 2023 · 2 comments

Comments

@martindurant
Copy link

How would I import this as a crate in other python-facing rust package? I would like to use RustyBuffer as a zero-copy way of passing read()-able byte chunks to python within rfsspec. Later, I would also use the (stream) de/compressors. Just naively adding cramjam into my Cargo.toml causes a big long list of compiler errors related to linker symbols.

@milesgranger
Copy link
Owner

milesgranger commented Apr 1, 2023

You're likely blocked by PyO3/pyo3#1444

Same reason #52 can't make it in.

@milesgranger
Copy link
Owner

Closing this, as I think #101 solves the last portion of you wanted to use the stream de/compressors; and nothing I can do about the first but see you've got it in rfsspec, and suppose you too, can use the buffer protocol to pass cramjam Buffer or otherwise to it I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants