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

git(source-scan): create empty merge commit #163

Merged
merged 3 commits into from
May 14, 2024

Conversation

dj8yfo
Copy link
Collaborator

@dj8yfo dj8yfo commented May 13, 2024

No description provided.

encody and others added 3 commits May 3, 2024 19:32
Adds support for passing feature flags to `cargo`.

## Motivation

Smart contract developers will sometimes use [feature
flags](https://doc.rust-lang.org/cargo/reference/features.html#the-features-section)
to enable/disable certain portions of code during compilation (e.g.
enable certain debugging features for the testnet version which are not
available in the production version).

## Usage

```txt
cargo near build --features feat1,feat2
```

```txt
cargo near build --no-default-features
```

## Implementation Notes

It does no validation of the input received to the flag, transparently
forwarding it as an opaque string directly to `cargo`, after appending
`near-sdk/__abi-embed` if necessary.
@dj8yfo dj8yfo marked this pull request as ready for review May 13, 2024 13:26
@frol frol merged commit 48cef28 into near:source-scan-integration May 14, 2024
14 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.

3 participants