You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First iteration of the features feature for the declarative parser (#1346)
* First iteration of the `features` feature for the declarative parser
There are a few things left to implement. Like adding a special syntax to requires.
This PR handles the scenarios for root packages.
See the `tdeclarativeparser` tests over the `features` packages.
Nimble file
```nim
# Dependencies
requires "nim >= 2.3.1"
feature "feature1":
requires "stew"
```nim
when defined(features.features.feature1):
echo "feature1 is enabled"
import stew/byteutils #we should be able to import stew here as is its part of the feature1
else:
echo "feature1 is disabled"
```
* dont require `nim` devel in test
* Removes log
--disableNimBinaries Disable the use of nim precompiled binaries. Note in some platforms precompiled binaries are not available but the flag can still be used to avoid compile the Nim version once and reuse it.
279
280
--maximumTaggedVersions Maximum number of tags to check for a package when discovering versions for the SAT solver. 0 means all.
280
281
--parser:declarative|nimvm Use the declarative parser or the nimvm parser (default).
282
+
--features Activate features. Only used when using the declarative parser.
0 commit comments