Skip to content

Commit d2eac91

Browse files
committed
Update lib.rs
1 parent 9a44dd1 commit d2eac91

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

src/lib.rs

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,4 @@
1-
//! `inline-vbs` is a crate that allows you to embed VBScript code inside Rust code files. It uses
2-
//! the [Active Scripting](https://docs.microsoft.com/en-us/archive/msdn-magazine/2000/december/active-scripting-apis-add-powerful-custom-debugging-to-your-script-hosting-app) COM APIs to dynamically parse and execute (optionally, evaluate) code.
3-
//!
4-
//! ### Basic usage
5-
//! ```rust
6-
//! use inline_vbs::*;
7-
//!
8-
//! vbs! { On Error Resume Next } // tired of handling errors?
9-
//! vbs! { MsgBox "Hello, world!" }
10-
//! let language = "VBScript";
11-
//! assert_eq!(vbs_!['language & " Rocks!"], "VBScript Rocks!".into());
12-
//! ```
13-
//!
14-
//! Macros:
15-
//! * `vbs!` - Executes a statement
16-
//! * `vbs_!` - Evaluates an expression
17-
//! * `vbs_raw!` - Executes a statement (string input instead of tokens, use for multiline code)
18-
//!
19-
//! See more examples in [tests/tests.rs](tests/tests.rs)
20-
//!
21-
//! ### Limitations
22-
//! Many. Most notably, `IDispatch` objects (i.e. what `CreateObject` returns) can't be passed to
23-
//! the engine (`let x = vbs! { CreateObject("WScript.Shell") }; vbs! { y = 'x }` won't work).
24-
//!
25-
//! ### Motivation
26-
//! N/A
27-
//!
28-
//! ### License
29-
//!
30-
//!
31-
//! This project is licensed under either of
32-
//!
33-
//! * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
34-
//! https://www.apache.org/licenses/LICENSE-2.0)
35-
//! * MIT license ([LICENSE-MIT](LICENSE-MIT) or
36-
//! https://opensource.org/licenses/MIT)
37-
//!
38-
//! at your option.
1+
#![doc = include_str!("../README.md")]
392

403
use std::os::raw::c_char;
414
pub use variant_rs::variant::ToVariant;

0 commit comments

Comments
 (0)