Skip to content

Commit

Permalink
feat: VERSION now available
Browse files Browse the repository at this point in the history
  • Loading branch information
Jkutkut committed Jun 7, 2024
1 parent 3b0fb75 commit a7fc685
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "osmia"
version = "1.12.0"
version = "1.12.1"
edition = "2021"
authors = ["Jkutkut"]

Expand Down
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,12 @@ use model::Stmt;
/// let result = interpreter.run(&code).unwrap();
/// assert_eq!(result, "User: Marvin");
/// ```
pub struct Osmia {
}
pub struct Osmia;


impl Osmia {
pub const VERSION: &'static str = env!("CARGO_PKG_VERSION");

pub fn new() -> Interpreter {
Self::from_json("{}").unwrap()
}
Expand Down

0 comments on commit a7fc685

Please sign in to comment.