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

Python bindings as a feature of the main crate #74

Merged
merged 8 commits into from
Dec 24, 2021

Conversation

fjarri
Copy link
Contributor

@fjarri fjarri commented Nov 26, 2021

Since the bindings in https://github.com/nucypher/nucypher-core need access to some Umbral objects, we need to expose the Rust side of the bindings in Umbral. Otherwise objects coming from two different binary-backed libraries would be incompatible.

This PR moves the Python bindings to a feature-gated submodule of the main library. Other possible way is to have a separate umbral-pre-python crate with the bindings, and import that. Would that be better?

@codecov-commenter
Copy link

codecov-commenter commented Nov 26, 2021

Codecov Report

Merging #74 (f6287e6) into master (3cf47a1) will decrease coverage by 12.71%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #74       +/-   ##
===========================================
- Coverage   81.15%   68.44%   -12.72%     
===========================================
  Files          15       16        +1     
  Lines        1125     1334      +209     
===========================================
  Hits          913      913               
- Misses        212      421      +209     
Impacted Files Coverage Δ
umbral-pre/src/bindings_python.rs 0.00% <0.00%> (ø)
umbral-pre/src/serde.rs 86.66% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3cf47a1...f6287e6. Read the comment docs.

@fjarri fjarri force-pushed the bindings-as-features branch 4 times, most recently from 6e43341 to 3334e96 Compare December 19, 2021 02:26
@fjarri fjarri changed the title [WIP] Bindings as features [WIP] Python bindings as a feature of the main crate Dec 20, 2021
@fjarri fjarri force-pushed the bindings-as-features branch from 3334e96 to d599a47 Compare December 20, 2021 01:07
@fjarri fjarri added API Related to public API enhancement New feature or request Python Related to Python bindings labels Dec 20, 2021
@fjarri fjarri added this to the v1.0.0 milestone Dec 20, 2021
@fjarri fjarri force-pushed the bindings-as-features branch from d599a47 to 0194b47 Compare December 23, 2021 00:49
@fjarri fjarri marked this pull request as ready for review December 24, 2021 22:35
@fjarri fjarri changed the title [WIP] Python bindings as a feature of the main crate Python bindings as a feature of the main crate Dec 24, 2021
@fjarri fjarri force-pushed the bindings-as-features branch from 0194b47 to f6287e6 Compare December 24, 2021 22:42
@fjarri fjarri merged commit 8fc4b61 into nucypher:master Dec 24, 2021
@fjarri fjarri deleted the bindings-as-features branch December 24, 2021 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Related to public API enhancement New feature or request Python Related to Python bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants