-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: outsource non-core functionality
- Loading branch information
Showing
27 changed files
with
189 additions
and
1,128 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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Git Commit Convention | ||
|
||
We are using the following convention for writing git-commit messages. | ||
It is based on the one from AngularJS project([doc][angularjs-doc], | ||
[commits][angularjs-git]). | ||
|
||
[angularjs-git]: https://github.com/angular/angular.js/commits/master | ||
[angularjs-doc]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit# | ||
|
||
## Format of the commit message | ||
|
||
```xml | ||
<type>: <subject> | ||
<NEWLINE> | ||
<body> | ||
<NEWLINE> | ||
<footer> | ||
``` | ||
|
||
`<type>` is: | ||
|
||
+ feat (feature) | ||
+ fix (bug fix) | ||
+ doc (documentation) | ||
+ style (formatting, missing semicolons, ...) | ||
+ refactor | ||
+ test (when adding missing tests) | ||
+ chore (maintain, ex: travis-ci) | ||
+ perf (performance improvement, optimization, ...) | ||
|
||
``<subject>`` has the following constraints: | ||
|
||
+ use imperative, present tense: "change" not "changed" nor "changes" | ||
+ do not capitalize the first letter | ||
+ no dot(.) at the end | ||
|
||
``<body>`` has the following constraints: | ||
|
||
+ just as in ``<subject>``, use imperative, present tense | ||
+ includes motivation for the change and contrasts with previous | ||
behavior | ||
|
||
``<footer>`` is optional and may contain two items: | ||
|
||
+ Breaking changes: All breaking changes have to be mentioned in | ||
footer with the description of the change, justification and | ||
migration notes | ||
+ Referencing issues: Closed bugs should be listed on a separate line | ||
in the footer prefixed with "Closes" keyword like this: | ||
|
||
Closes #123, #456 | ||
|
||
## Examples | ||
|
||
fix: add declarations for operator<<(std::ostream&, expr const&) and operator<<(std::ostream&, context const&) in the kernel | ||
|
||
The actual implementation of these two operators is outside of the | ||
kernel. They are implemented in the file 'library/printer.cpp'. We | ||
declare them in the kernel to prevent the following problem. Suppose | ||
there is a file 'foo.cpp' that does not include 'library/printer.h', | ||
but contains | ||
|
||
expr a; | ||
... | ||
std::cout << a << "\n"; | ||
... | ||
|
||
The compiler does not generate an error message. It silently uses the | ||
operator bool() to coerce the expression into a Boolean. This produces | ||
counter-intuitive behavior, and may confuse developers. |
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,7 @@ | ||
# How to Contribute | ||
|
||
+ Always follow the [commit convention](./COMMIT-CONVENTION.md). | ||
+ Follow the [rustfmt styleguide](https://github.com/rust-lang/rustfmt). | ||
+ Make sure your code is documented. | ||
+ New features or bug fixes should come with appropriate tests. | ||
+ Ensure all tests work before submitting a PR. |
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
Binary file not shown.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,26 +1,10 @@ | ||
mod flow; | ||
mod nodes; | ||
mod sched; | ||
|
||
pub use self::nodes::add; | ||
pub use self::nodes::basic; | ||
pub use self::nodes::connection; | ||
pub use self::nodes::debug; | ||
pub use self::nodes::node; | ||
|
||
pub use self::flow::app_state; | ||
pub use self::flow::scheduler; | ||
pub use self::flow::executor; | ||
pub use self::flow::flow_type; | ||
pub use self::flow::version; | ||
|
||
|
||
pub use flow_derive::Connectable; | ||
|
||
use wasm_bindgen::prelude::wasm_bindgen; | ||
|
||
#[wasm_bindgen] | ||
extern "C" { | ||
fn alert(s: &str); | ||
#[wasm_bindgen(js_namespace = console)] | ||
fn log(s: &str); | ||
} | ||
pub use self::sched::executor; | ||
pub use self::sched::flow_type; | ||
pub use self::sched::scheduler; | ||
pub use self::sched::version; |
Oops, something went wrong.