Skip to content

feat(cli): accept standard json input on stdin#1856

Open
malsomesh9 wants to merge 1 commit intohyperledger-solang:mainfrom
malsomesh9:codex/fix-791-standard-json-input
Open

feat(cli): accept standard json input on stdin#1856
malsomesh9 wants to merge 1 commit intohyperledger-solang:mainfrom
malsomesh9:codex/fix-791-standard-json-input

Conversation

@malsomesh9
Copy link
Copy Markdown

Summary

Teach solang compile --standard-json to accept Solidity standard JSON input from stdin, compile the declared sources, and print the existing standard JSON output shape.

Changes

  • parse standard JSON input from stdin when --standard-json is used without positional source files
  • load inline source content and local urls entries into the file resolver
  • apply settings.remappings to import resolution
  • restore standard JSON contract grouping by source file and add a CLI regression test

Fixes #791

Verification

  • cargo fmt --all
  • attempted cargo test --test cli standard_json_reads_sources_from_stdin but local build is blocked here by a missing system LLVM toolchain required by llvm-sys

Signed-off-by: Somesh Mal <malsomesh9@gmail.com>
@malsomesh9 malsomesh9 force-pushed the codex/fix-791-standard-json-input branch from ccd14ba to 2703c21 Compare April 7, 2026 17:54
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.

solang needs to accept solidity standard json as input

1 participant