Skip to content

Rust backend: inject_can - #40

Merged
ShahriarAhnaf merged 3 commits into
mainfrom
agent/inject-can-7c21
Oct 6, 2026
Merged

ShahriarAhnaf merged 3 commits into
mainfrom
agent/inject-can-7c21

Conversation

@ShahriarAhnaf

Copy link
Copy Markdown
Contributor

Sim(backend="rust").inject_can(...) now calls the engine instead of raising NotSupported. An engine too old to have it raises NotSupported("CAN injection needs a newer Rust engine").

Docs table updated. inject_radio is still unsupported on the Rust engine.

Needs a Rust engine build that includes CAN injection; unit tests use a fake engine (173 passed, 7 skipped). Also checked against a real engine: a single-node CAN firmware prints FAIL with no frame and PASS after the frame it waits for is injected.

🤖 Generated with Claude Code

ShahriarAhnaf and others added 2 commits October 6, 2026 03:00
Calls the engine's Session.inject_can; an older engine without it raises
NotSupported. Docs table updated; radio injection still unsupported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Calls the engine's set_adc / attach_i2c / attach_spi; an older engine raises
NotSupported. Docs table updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rust backend: inject_adc, attach_i2c, attach_spi
@ShahriarAhnaf
ShahriarAhnaf marked this pull request as ready for review October 6, 2026 19:04
@ShahriarAhnaf
ShahriarAhnaf merged commit ae49864 into main Oct 6, 2026
2 checks passed
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