mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-06 16:40:39 +00:00
Use git-commit as ty playground version instead of 0.0.0 (#18314)
This commit is contained in:
parent
e1b662bf5d
commit
5d93d619f3
6 changed files with 104 additions and 4 deletions
|
@ -23,6 +23,14 @@ use ty_project::{Db, ProjectDatabase};
|
|||
use ty_python_semantic::Program;
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn version() -> String {
|
||||
option_env!("TY_WASM_COMMIT_SHORT_HASH")
|
||||
.or_else(|| option_env!("CARGO_PKG_VERSION"))
|
||||
.unwrap_or("unknown")
|
||||
.to_string()
|
||||
}
|
||||
|
||||
#[wasm_bindgen(start)]
|
||||
pub fn run() {
|
||||
use log::Level;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue