-
-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added an example usage to documentation (#2742)
It changes the following: - Adds an example usage in the main `boa_engine` documentation - Add a simple README file in the boa_examples crate
- Loading branch information
Showing
2 changed files
with
48 additions
and
6 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
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 @@ | ||
# Examples of usage for `boa_engine` | ||
|
||
In this crate you can find examples of the usage of the Boa JavaScript engine. The simplest | ||
example can be found in the [loadstring.rs](./src/bin/loadstring.rs) file. A similar example | ||
that uses JavaScript stored in a file can be found in [loadfile.rs](./src/bin/loadfile.rs). | ||
|
||
You can also find examples of specific Rust APIs for arrays, maps, sets, typed arrays and much | ||
more. |