Skip to content

Allow custom time implementation #4321

@lastmjs

Description

@lastmjs

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions