proposal to support raw_attribute with raw pointer #124180
Closed
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Hello rust community,
I'm still rather new to rust, but I collected experience with rust in the uutils project.
There I'm currently trying to make use of the conpty windows feature and stumbled across the same topic as discussion in #114854.
This was my solution to it and I found that its probably simpler as all other solutions I've seen on the discussion topic (#121951, #123604). And thus its easier to understand, use and therefor might take less discussions to get it approved.
The key element is, that I don't change the existing approach for normal data attributes with the Box::new(). I just extend the API with a second variant that takes raw pointers.
Just let me know what you think.
If there is positive feedback, I will adapt documentation and tests.
I also added a change (force_use_std_handles) that will be needed to have a proper support of the PSEUDOCONSOLE / conpty.
Its clear that this should be in a different PR. I will split it as needed after some feedback.