Skip to content

Stop doing Rust-side wrappers around fastly crate #44

Description

@zkat

We currently manually wrap every single Rust type with an additional, owned wrapper. This was a nice and quick solution that allowed the cpp sdk to exist independently of the main fastly SDK. Unfortunately, this means that we can't do certain things, like return references to fastly objects. It also adds some potential overhead.

Ideally, we would define the ffi stuff directly in the main fastly Rust crate, so cxx can apply its trait implementations to the original types. We'll still need custom wrappers around many things for the custom type conversions, static methods, etc, though.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions