Skip to content

Improve build: use RustToolChain and selective imports#123

Merged
terasakisatoshi merged 2 commits intomainfrom
build/use-rust-toolchain-and-refine-imports
Mar 18, 2026
Merged

Improve build: use RustToolChain and selective imports#123
terasakisatoshi merged 2 commits intomainfrom
build/use-rust-toolchain-and-refine-imports

Conversation

@terasakisatoshi
Copy link
Copy Markdown
Member

Summary

  • deps: Add RustToolChain and use cargo() for cross-platform cargo lookup
  • utils: Use selective imports in generate_C_API.jl instead of full module imports

Made with Cursor

- Add RustToolChain dependency to deps/Project.toml
- Use cargo() from RustToolChain instead of hardcoded 'cargo' command
- Ensures correct cargo path in cross-platform and non-standard environments

Made-with: Cursor
- Replace broad Clang.Generators and Clang.LibClang.Clang_jll imports
  with selective: load_options, get_default_args, create_context, build!
- Reduces namespace pollution and clarifies dependencies

Made-with: Cursor
@terasakisatoshi terasakisatoshi merged commit 2ea87ce into main Mar 18, 2026
11 checks passed
@terasakisatoshi terasakisatoshi deleted the build/use-rust-toolchain-and-refine-imports branch March 18, 2026 23:41
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.

1 participant