Skip to content

Add slang bindings and pickler#264

Draft
fischeti wants to merge 33 commits intomasterfrom
fischeti/slang-pickler
Draft

Add slang bindings and pickler#264
fischeti wants to merge 33 commits intomasterfrom
fischeti/slang-pickler

Conversation

@fischeti
Copy link
Contributor

@fischeti fischeti commented Jan 28, 2026


This is part 1 of 2 in a stack made with GitButler:

@fischeti fischeti force-pushed the fischeti/slang-pickler branch 2 times, most recently from faf42ab to a8e840c Compare January 29, 2026 11:29
@micprog micprog force-pushed the fischeti/slang-pickler branch from 448dbbf to d92fb2f Compare January 29, 2026 16:04
@fischeti fischeti force-pushed the fischeti/slang-pickler branch 2 times, most recently from 7dd5086 to ac6988a Compare January 30, 2026 15:21
@fischeti fischeti force-pushed the fischeti/slang-pickler branch 3 times, most recently from 95757fe to 79a2d1d Compare February 5, 2026 23:40
@fischeti fischeti force-pushed the fischeti/slang-pickler branch 2 times, most recently from 6992fdb to 9526ab2 Compare February 12, 2026 16:47
@fischeti fischeti force-pushed the fischeti/slang-pickler branch from 9526ab2 to e94b860 Compare February 12, 2026 17:39
@fischeti fischeti force-pushed the fischeti/slang-pickler branch from 36d26ce to 461ef7a Compare February 16, 2026 13:09
Introduce safe wrapper types for the opaque FFI objects and move the
extension methods into proper Rust structs to provide a clearer,
idiomatic API and safer ownership semantics.

- Add SyntaxTree wrapper around SharedPtr<ffi::SyntaxTree> with Clone,
  display, as_debug, rename, and fmt impls (Display/Debug).
- Add SlangContext wrapper around UniquePtr<ffi::SlangContext> with new,
  set_includes, set_defines, and parse returning a SyntaxTree.
- Replace new_session() to return SlangContext instead of raw pointer.
- Update callers: remove use of extension traits and change formatting
  at pickling to use Debug/Display impls (write!("{:?}", renamed_tree)).
@fischeti fischeti force-pushed the fischeti/slang-pickler branch 3 times, most recently from 6dfa15f to 2447060 Compare February 16, 2026 21:16
@fischeti fischeti force-pushed the fischeti/slang-pickler branch from 2447060 to 861b6ab Compare February 16, 2026 21:17
@fischeti fischeti force-pushed the fischeti/slang-pickler branch from e17eb1e to 1dbe291 Compare February 16, 2026 22:04
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

Successfully merging this pull request may close these issues.

2 participants