Skip to content

[console] fix importCode.rust.fromString, add additional fromStringWithExtraDeps#6054

Merged
maltek merged 2 commits into
masterfrom
mkraus/rust-import
Jun 26, 2026
Merged

[console] fix importCode.rust.fromString, add additional fromStringWithExtraDeps#6054
maltek merged 2 commits into
masterfrom
mkraus/rust-import

Conversation

@maltek

@maltek maltek commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Ensure we create a Cargo.toml, and ensure the code is stored in a src/lib.rs file. Without that, the CPGs are always be empty.

Also adds an additional method that allows adding extra entries in the dependencies section of Cargo.toml for easy testing of code that requires a library.

…thExtraDeps

Ensure we create a Cargo.toml, and ensure the code is stored in a
`src/lib.rs` file. Before, the CPGs would always be empty.

Also adds an additional method that allows adding extra entries in the
dependencies section of `Cargo.toml` for easy testing of code that
requires a library.
@maltek maltek requested a review from xavierpinho June 26, 2026 11:00
@maltek maltek merged commit 4df99f6 into master Jun 26, 2026
8 checks passed
@maltek maltek deleted the mkraus/rust-import branch June 26, 2026 12:19
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.

3 participants