Skip to content

Allow custom time implementation #4321

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

Open
lastmjs opened this issue Dec 9, 2022 · 0 comments
Open

Allow custom time implementation #4321

lastmjs opened this issue Dec 9, 2022 · 0 comments

Comments

@lastmjs
Copy link

lastmjs commented Dec 9, 2022

Our project Kybra runs inside of a strict wasm32-unknown-unknown environment that does not have access to the standard system time. We have our own API available through a crate, ic_cdk::api::time.

We need some way to hook up this functionality into RustPython without maintaining a fork of RustPython. You can see what we have to do in vm/src/stdlib/time.rs here: https://github.com/demergent-labs/RustPython/pull/1/files

We would love to get off of our fork and have this ability upstreamed. Thanks!

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

1 participant