-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.3.0: Add
cargo check
and other updates (#2)
* Add `cargo check` and other updates * update `setupLogging` usage * Add `cargo check` to validate Rust code * Make console log messages a bit cleaner * Minor code refactor * Add a CHANGELOG file * Update CHANGELOG * Update docs * Style fix * Update docs * Update docs * Bump version
- Loading branch information
Showing
9 changed files
with
235 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,6 @@ test/ | |
|
||
# exclude examples | ||
cdk-examples | ||
|
||
# exclude changelog (can always be found on GitHub) | ||
CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Changelog | ||
|
||
This project follows semantic versioning. | ||
|
||
Possible header types: | ||
|
||
- `Features` for any new features added, or for backwards-compatible | ||
changes to existing functionality. | ||
- `Bug Fixes` for any bug fixes. | ||
- `Breaking Changes` for any backwards-incompatible changes. | ||
|
||
## [Unreleased] | ||
|
||
## v0.3.0 (2022-02-23) | ||
|
||
### Features | ||
|
||
- Add support to run `cargo check` by default before building Rust code. | ||
- Clean up console log messages that get printed out so they are a bit nicer. | ||
- Change the value that is set for the `RUST_LOG` environment variable when `setupLogging` is enabled. | ||
- The format is now `warn,module_name=debug` instead of `module_name=trace`. | ||
- Add below global _Settings_: | ||
- `RUN_CARGO_CHECK` | ||
- `DEFAULT_LOG_LEVEL` | ||
- `MODULE_LOG_LEVEL` | ||
|
||
## v0.2.0 (2022-02-19) | ||
|
||
### Features | ||
|
||
- Add docs on _Rust Function Properties_ and _Settings_. | ||
- Add new Rust Function Properties such as `setupLogging`. | ||
- Update Readme docs. | ||
- Add `cdk-examples/`. | ||
- Reduce overall package size when publishing to `npm`. | ||
- Some other stuff that I don't remember. | ||
|
||
## v0.1.0 (2022-02-17) | ||
|
||
- Initial Release on [npmjs.com] :tada: | ||
|
||
[npmjs.com]: https://www.npmjs.com/package/rust.aws-cdk-lambda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { performance } from 'perf_hooks'; | ||
|
||
export function logTime(start: number, message: string) { | ||
const elapsedSec = ((performance.now() - start) / 1000).toFixed( | ||
2 | ||
); | ||
console.log(`${message}: ${elapsedSec}s`); | ||
} |
Oops, something went wrong.