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
We, as members, contributors, and leaders, pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+
## Our Standards
10
+
11
+
Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+
* Demonstrating empathy and kindness toward other people
14
+
* Being respectful of differing opinions, viewpoints, and experiences
15
+
* Giving and gracefully accepting constructive feedback
16
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+
* Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+
Examples of unacceptable behavior include:
20
+
21
+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
22
+
* Trolling, insulting or derogatory comments, and personal or political attacks
23
+
* Public or private harassment
24
+
* Publishing others' private information, such as a physical or email address, without their explicit permission
25
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
26
+
27
+
## Enforcement Responsibilities
28
+
29
+
Community leaders are responsible for clarifying and enforcing our standards and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32
+
33
+
## Scope
34
+
35
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36
+
37
+
## Enforcement
38
+
39
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project team. All complaints will be reviewed and investigated promptly and fairly.
40
+
41
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42
+
43
+
## Enforcement Guidelines
44
+
45
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46
+
47
+
### 1. Correction
48
+
49
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50
+
51
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52
+
53
+
### 2. Warning
54
+
55
+
**Community Impact**: A violation through a single incident or series of actions.
56
+
57
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interaction in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58
+
59
+
### 3. Temporary Ban
60
+
61
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62
+
63
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64
+
65
+
### 4. Permanent Ban
66
+
67
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68
+
69
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
70
+
71
+
## Attribution
72
+
73
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
Copy file name to clipboardExpand all lines: README.md
+110-7Lines changed: 110 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Without Rustcript, developers would need to hardcode dynamic business logic, rul
20
20
21
21
It is designed to be both secure and flexible, allowing developers to tailor its capabilities based on their needs. The basic version provides standard structured programming abilities, while an extended version can be compiled with access to I/O and OS-level APIs for external automation tasks.
22
22
23
-
#### For more technical information, please refer to the [Language Manual](MANUAL.md).
23
+
#### For more technical information, please refer to the [MANUAL.md](MANUAL.md).
24
24
---
25
25
26
26
## 2. Full Features
@@ -72,7 +72,7 @@ It is designed to be both secure and flexible, allowing developers to tailor its
@@ -190,11 +190,13 @@ The codebase is organized as a library crate with a thin binary client, followin
190
190
191
191
---
192
192
193
-
## 6. Compilation
193
+
## 6. Compilation & Integration
194
194
195
-
`Rustcript` is designed to be embedded. Here are the primary methods forcompiling and integrating it into your own applications.
195
+
`Rustcript` is fundamentally a library crate, designed to be embedded as a scripting engine within a larger host application. While a standalone interpreter binary is provided fortesting and direct script execution, the primary and most powerful use case is integrating the `rustcript` crate into the projects.
196
196
197
-
### Method 1: Direct Integration with Rust Projects (Recommended)
197
+
There are two primary methods for integrating the `Rustcript` library:
198
+
199
+
### Method 1: Direct Integration via Cargo (Recommended for Rust Projects)
198
200
199
201
The easiest and most robust way to use `Rustcript`in another Rust project is to add it as a local `path` dependency in your project's `Cargo.toml`. This allows Cargo to manage the compilation process, ensuring that compiler versions, flags, and dependencies are perfectly aligned.
200
202
@@ -273,14 +275,14 @@ To accelerate development and enable automated script generation, this project i
273
275
274
276
#### [Click here to view the AI Instruction Manual](AI_INSTRUCTIONS.md)
275
277
276
-
This file, `AI_INSTRUCTIONS.md`, is a single-source-of-truth document that teaches an AI to become an expert `Rustcript` developer.
278
+
The, `AI_INSTRUCTIONS.md`, is a single-source-of-truth document that teaches an AI to become an expert `Rustcript` developer.
277
279
278
280
### Features for AI Integration
279
281
***System Prompting & Persona:** The file begins with a system prompt that primes the AI to act as a specialist in the `Rustcript` language and its interpreter.
280
282
***Deep Architectural Insights:** It goes beyond the public manual, explaining the *internal logic* of the interpreter—how the parser builds an AST, how the `jump_map` optimizes control flow, and how the state machine manages scopes and stacks. This context allows the AI to reason about the code from first principles.
281
283
***Formal Grammar & API Reference:** The complete language syntax and standard library are documented in a structured, machine-readable format, minimizing ambiguity.
282
284
***Few-Shot Learning Zone:** The document contains a rich set of examples formatted as `Task -> Thought Process -> Correct Code`. This teaches the AI not just *what* the correct code is, but *how* to reason about a problem and arrive at the solution, a technique derived from Chain-of-Thought prompting.
283
-
***Anti-Pattern Database:** A dedicated section lists common mistakes and invalid syntax patterns, training the AI to avoid them proactively.
285
+
***Anti-Pattern Mitigations:** A dedicated section lists common mistakes and invalid syntax patterns, training the AI to avoid them proactively.
284
286
285
287
### Use Case
286
288
By providing `AI_INSTRUCTIONS.md` as context to a capable LLM, developers can:
@@ -291,4 +293,105 @@ By providing `AI_INSTRUCTIONS.md` as context to a capable LLM, developers can:
291
293
292
294
This approach turns a modern AI into a powerful pair-programmer, fully versed in the specifics and best practices of the Rustcript language.
293
295
296
+
---
297
+
298
+
## 9. Project Philosophy & Future Roadmap
299
+
300
+
### From a Personal Tool to an Open-Source Project
301
+
302
+
This project represents the first public version of Rustcript. It began as a practical solution to add dynamic flexibility to my own Rust applications, allowing me to modify logic and configurations without the friction of a full re-compilation for every minor change.
303
+
304
+
During its development, Rustcript evolved significantly. What started as a simple need for dynamic scripting grew into a robust tool with a comprehensive security model, a full-fledged standard library, and a powerful Rust interoperability layer, doing much more than its initial scope required. The result is a powerful, secure, and resilient interpreter that is already well-suited for its primary use cases.
305
+
306
+
### The Future is Community-Driven
307
+
308
+
While the current version is stable and feature-rich, the goal is to see Rustcript grow to serve a wider range of applications and needs in the future. The roadmap will be heavily influenced by the community.
309
+
310
+
We strongly encourage users and contributors to help shape the future of Rustcript. If you have an idea for a new feature, a suggestion for improving the language syntax, or have found a bug, please open a GitHub Issue. Your feedback is crucial for this next phase of development.
311
+
312
+
**Have a feature request? You can open a new issue here:**
We welcome contributions from the community! Whether it's reporting a bug, improving documentation, suggesting a new feature, or writing code, your help is greatly appreciated in making Rustcript better for everyone.
320
+
321
+
### Types of Contributions We're Looking For
322
+
323
+
***Code Contributions:** Fixing bugs or implementing new language features, standard library functions, or interpreter optimizations.
324
+
***Documentation:** Improving the [`README.md`](README.md), the [`MANUAL.md`](MANUAL.md), the [`AI_INSTRUCTIONS.md`](AI_INSTRUCTIONS.md), or inline code comments.***Bug Reports & Feature Requests:** Submitting detailed issues and well-thought-out ideas in the [Issues tab](https://github.com/Eng-AliKazemi/Rustcript/issues/new).
325
+
326
+
### General Contribution Workflow
327
+
328
+
To ensure a smooth and collaborative process for code changes, we follow a simple guideline:
329
+
330
+
**➡️ Please open a GitHub Issue to discuss your idea *before* starting to write code.**
331
+
332
+
This approach helps us:
333
+
- **Align on Goals:** Ensure your proposed change fits with the project's vision and roadmap.
334
+
- **Avoid Duplicate Work:** Check if someone else is already working on a similar feature.
335
+
- **Refine the Technical Approach:** Discuss the best way to implement your idea and get early feedback.
336
+
- **Streamline the Review Process:** Make the pull request review much faster and more straightforward.
337
+
338
+
**Workflow Steps:**
339
+
340
+
1. **Start a Discussion:** Go to the [**Discussions tab**](https://github.com/Eng-AliKazemi/Rustcript/discussions) and open a new topic. Clearly describe the bug you want to fix or the feature you want to add. For new features, please outline the proposal and its use case. We'll use the discussion to refine the scope and plan before an issue is created.
341
+
342
+
2. **Fork & Branch:** Once the idea is discussed and agreed upon, fork the repository and create a new branch for your work. A good branch name is descriptive. **Please always work on a feature branch, not on your fork's `master` branch.** This keeps your main branch clean and makes the PR process smoother.
343
+
```bash
344
+
# Create a new branch from the 'development' branch
345
+
git checkout development
346
+
git pull origin development
347
+
git checkout -b feature/your-amazing-feature
348
+
```
349
+
350
+
3. **Develop & Test:** Make your changes, adhering to the project's coding style and Rust best practices. **Crucially, ensure you test your changes thoroughly.**
351
+
352
+
4. **Submit a Pull Request:** Push your feature branch to your fork and open a pull request against the **`development`** branch of the `Eng-AliKazemi/Rustcript` repository. Pull requests should always come from your feature branch, not your `master` branch. Please provide a clear description of your changes in the PR and link it to the original discussion or issue.
353
+
354
+
We look forward to collaborating with you
355
+
356
+
---
357
+
358
+
## 11. License
359
+
360
+
This project is licensed under the **Mozilla Public License 2.0 (MPL-2.0)**.
361
+
362
+
You are free to use, study, share, and modify the software. If you modify any MPL-licensed files, you must make the source code of those specific files available. You may combine this software with proprietary code in a larger project without needing to release the source code of your other components.
363
+
364
+
### Additional Attribution Requirement
365
+
In accordance with MPL 2.0, all distributions of this software in**binary and source form** must include the following user-visible attribution in at least one of the following locations:
366
+
- In the README
367
+
- On a startup/splash screen
368
+
- In an "About" or "Acknowledgements" dialog box
369
+
- In the primary documentation or "Help" menu
370
+
- As a footer on a command-line tool's initial output
371
+
372
+
**Required attribution text:**
373
+
> Powered by Rustcript from https://github.com/Eng-AliKazemi/Rustcript.
374
+
375
+
For the full license text, please see the [`LICENSE`](LICENSE) file.
376
+
377
+
---
378
+
379
+
## 12. Code of Conduct
380
+
381
+
This project and everyone participating in it is governed by the [Ruscript Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
382
+
383
+
---
384
+
385
+
## 13. Acknowledgments
386
+
387
+
The development of Rustcript relies on the exceptional work of the open-source community. We extend our deepest gratitude to the developers behind the incredible Rust crates that made this interpreter possible, including:
388
+
389
+
For a complete list of third-party dependencies and their versions, please see the `Cargo.toml` file.
390
+
391
+
---
392
+
393
+
## 14. Contact
394
+
395
+
To get in touch with the developer, please use the following link:
294
396
397
+
<a href="https://linkedin.com/in/e-a-k" target="_blank"><img src="https://img.shields.io/badge/Connect-LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white&labelColor=555" alt="Connect on LinkedIn"/></a>
0 commit comments