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

request: using external objects containing references #166

Closed
sapir opened this issue Nov 19, 2020 · 1 comment
Closed

request: using external objects containing references #166

sapir opened this issue Nov 19, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@sapir
Copy link

sapir commented Nov 19, 2020

For example:

#[derive(runestick::Any, Default)]
struct MyObject<'a> {
    something: &'a u32,
}

Currently, runestick::Any requires std::any::Any which requires 'static, and also UnsafeFromValue and UnsafeToValue require 'static, so this is impossible. Also the derive macro doesn't handle the lifetime correctly.

It would be nice if this were allowed when not using async.

@udoprog udoprog added the enhancement New feature or request label Nov 25, 2020
@udoprog
Copy link
Collaborator

udoprog commented Aug 15, 2024

This can't be supported, see discussion in #600

@udoprog udoprog closed this as completed Aug 15, 2024
@udoprog udoprog changed the title Allow using external objects containing references request: using external objects containing references Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants