Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drive-by tweaks and docs #561

Merged
merged 13 commits into from
Aug 10, 2023
Merged

Conversation

Xanewok
Copy link
Contributor

@Xanewok Xanewok commented Aug 3, 2023

Not touching the grammar definition-related code since that's about to be changed by https://github.com/AntonyBlakey/slang/tree/AntonyBlakey/to_rust_types.

Somewhat related to #234, I noticed that we have public extension traits that seem to only work with the LanguageDefinition type. Maybe we should change these one-function traits to free functions that accept the language definition as the argument, instead?

Also not feeling strongly about 84912e8, thought it's more of a nice-to-have.

Xanewok added 6 commits August 3, 2023 12:00
These seem to be redundant: any crate using the
`solidity_language::SolidityLanguageExtensions` will by rebuilt
if the `solidity_language` crate changes but it was that package's
build script that defined the variable that was explicitly depended
upon by the callers, so no need to manually instruct Cargo here.
See https://generated.at/.

This is already used by Cargo.lock and Rustfmt supports it:
rust-lang/rustfmt#3958
...however Clippy does not honor the @generated and needs an explicit
allow setting, see rust-lang/rust-clippy#702.
@Xanewok Xanewok requested a review from a team as a code owner August 3, 2023 12:14
@changeset-bot
Copy link

changeset-bot bot commented Aug 3, 2023

🦋 Changeset detected

Latest commit: 64b4152

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

crates/codegen/ebnf/src/serialization.rs Outdated Show resolved Hide resolved
crates/codegen/utils/src/internal/formatting.rs Outdated Show resolved Hide resolved
crates/codegen/utils/src/internal/formatting.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@OmarTawfik OmarTawfik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments/questions. Thank you!

Xanewok added 6 commits August 4, 2023 12:25
Downstream build scripts do not need the additional Cargo marker since
the build scripts for a package are always executed if a dependency
(in this case, the `solidity_language` library target) changes.
@Xanewok
Copy link
Contributor Author

Xanewok commented Aug 9, 2023

This now has only the docs and the removed extraneous Cargo markers. Let me know if this makes sense 👍

Copy link
Contributor

@OmarTawfik OmarTawfik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@OmarTawfik OmarTawfik enabled auto-merge August 10, 2023 04:52
@OmarTawfik OmarTawfik added this pull request to the merge queue Aug 10, 2023
Merged via the queue into NomicFoundation:main with commit cb6a138 Aug 10, 2023
@Xanewok Xanewok deleted the driveby-fixes branch August 10, 2023 06:37
@github-actions github-actions bot mentioned this pull request Sep 4, 2023
github-merge-queue bot pushed a commit that referenced this pull request Sep 27, 2023
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## @nomicfoundation/[email protected]

### Minor Changes

- [#595](#595)
[`1a258c4`](1a258c4)
Thanks [@Xanewok](https://github.com/Xanewok)! - Attempt error recovery
when parsing incomplete lists

- [#564](#564)
[`e326a06`](e326a06)
Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Parsing
operators with missing operands should no longer panic

- [#564](#564)
[`e326a06`](e326a06)
Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Inline parse
rules are no longer exposed to the API.

- [#564](#564)
[`e326a06`](e326a06)
Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Scanners are
no longer available as methods - use next_token instead

- [#564](#564)
[`e326a06`](e326a06)
Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Scanners are
now grouped into contexts to deal with contextual scanning

### Patch Changes

- [#601](#601)
[`cbd2a79`](cbd2a79)
Thanks [@Xanewok](https://github.com/Xanewok)! - Attempt parser error
recovery between bracket delimiters

- [#599](#599)
[`4bbad48`](4bbad48)
Thanks [@Xanewok](https://github.com/Xanewok)! - Use correct versions
for the `revert` and `global` keywords

- [#561](#561)
[`cb6a138`](cb6a138)
Thanks [@Xanewok](https://github.com/Xanewok)! - Add preliminary
documentation for the `solidity_language` Rust package

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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