Skip to content

Embed VBScript code inside Rust code files

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

iCodeIN/inline-vbs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inline-vbs

inline-vbs is a crate that allows you to embed VBScript code inside Rust code files. It uses the Active Scripting COM APIs to dynamically parse and execute (optionally, evaluate) code.

Basic usage

use inline_vbs::*;

fn main() {
    vbs![On Error Resume Next]; // tired of handling errors?
    vbs![MsgBox "Hello, world!"];
    if let Ok(Variant::String(str)) = vbs_!["VBScript" & " Rocks!"] {
        println!("{}", str);
    }
}

Installation

Add this to your Cargo.toml:

[dependencies]
inline-vbs = "0.1"

Important: You need to have the MSVC Build Tools installed on your computer, and you may need to run the vsdevcmd.bat script in your terminal to set up the build environment:

"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64

(replace with the path of your VS installation)

Limitations

Many

Motivation

N/A

License

This project is licensed under either of

About

Embed VBScript code inside Rust code files

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 71.6%
  • C++ 27.3%
  • C 1.1%