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

Temporary: Improve external usability #368

Closed
wants to merge 2 commits into from

Conversation

notlesh
Copy link
Collaborator

@notlesh notlesh commented Sep 12, 2024

Issue Number: #364

Type

  • feature
  • bugfix
  • dev (no functional changes, no API changes)
  • fmt (formatting, renaming)
  • build
  • docs
  • testing

Description

This PR implements the easiest path to making SNOS and prove_block usable externally as needed in #364. It does so by making two easy trade-offs:

Including OS build artifacts (committing build/os_latest.json) - a98e1b0

This prevents include_bytes!("../../../build/os_latest.json"); from failing without introducing a lot of complexity in build automation, but now we have an artifact to manage which will likely cause confusion, unintended changes, etc.

Alternatives I explored could include pyO3 or building with docker. Either might work, but would come with a lot of build complexity, maintenance, etc.

Converting Rc to Arc - db898dc

This is probably not controversial, although it does come with some overhead. The overhead probably doesn't appear in any hot path, although I don't have a good way to measure this.

Breaking changes?

  • yes
  • no

@notlesh
Copy link
Collaborator Author

notlesh commented Sep 13, 2024

This is superseded by #372 and #369 but I'll leave it open as it fixes #368 until the other two are merged into main.

@notlesh notlesh changed the title Improve external usability Temporary: Improve external usability Sep 13, 2024
@HermanObst
Copy link
Collaborator

Closing as is not needed

@HermanObst HermanObst closed this Sep 19, 2024
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

Successfully merging this pull request may close these issues.

2 participants