mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
prettier *.js + fix miri build (#5028)
* prettier *.js * bump up proc-macro2
This commit is contained in:
4
Cargo.lock
generated
4
Cargo.lock
generated
@@ -1714,9 +1714,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.51"
|
||||
version = "1.0.66"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5d727cae5b39d21da60fa540906919ad737832fe0b1c165da3a34d6548c849d6"
|
||||
checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9"
|
||||
dependencies = [
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
@@ -13,7 +13,7 @@ once_cell = { workspace = true }
|
||||
syn = { workspace = true, features = ["full", "extra-traits"] }
|
||||
|
||||
maplit = "1.0.2"
|
||||
proc-macro2 = "1.0.37"
|
||||
proc-macro2 = "1.0.60"
|
||||
quote = "1.0.18"
|
||||
syn-ext = { version = "0.4.0", features = ["full"] }
|
||||
textwrap = { version = "0.15.0", default-features = false }
|
||||
|
||||
@@ -51,7 +51,7 @@ print(js_vars['a'] * 9)
|
||||
vars: {
|
||||
a: 9,
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
```
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ module.exports = (env = {}) => {
|
||||
alias: {
|
||||
rustpython: path.resolve(
|
||||
__dirname,
|
||||
env.rustpythonPkg || '../lib/pkg'
|
||||
env.rustpythonPkg || '../lib/pkg',
|
||||
),
|
||||
},
|
||||
},
|
||||
@@ -39,11 +39,11 @@ module.exports = (env = {}) => {
|
||||
snippets: fs
|
||||
.readdirSync(path.join(__dirname, 'snippets'))
|
||||
.map((filename) =>
|
||||
path.basename(filename, path.extname(filename))
|
||||
path.basename(filename, path.extname(filename)),
|
||||
),
|
||||
defaultSnippetName: 'fibonacci',
|
||||
defaultSnippet: fs.readFileSync(
|
||||
path.join(__dirname, 'snippets/fibonacci.py')
|
||||
path.join(__dirname, 'snippets/fibonacci.py'),
|
||||
),
|
||||
},
|
||||
}),
|
||||
@@ -56,7 +56,7 @@ module.exports = (env = {}) => {
|
||||
config.plugins.push(
|
||||
new WasmPackPlugin({
|
||||
crateDirectory: path.join(__dirname, '../lib'),
|
||||
})
|
||||
}),
|
||||
);
|
||||
}
|
||||
return config;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
||||
@@ -68,7 +68,7 @@ const secondaryEditor = CodeMirror(
|
||||
{
|
||||
lineNumbers: true,
|
||||
lineWrapping: true,
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
const buffers = {};
|
||||
@@ -88,7 +88,7 @@ openBuffer(
|
||||
'# python code or code blocks that start with %%py, %%md %%math.',
|
||||
'notebook',
|
||||
buffersDropDown,
|
||||
buffersList
|
||||
buffersList,
|
||||
);
|
||||
|
||||
openBuffer(
|
||||
@@ -97,7 +97,7 @@ openBuffer(
|
||||
'# Python code',
|
||||
'python',
|
||||
buffersDropDown,
|
||||
buffersList
|
||||
buffersList,
|
||||
);
|
||||
|
||||
openBuffer(
|
||||
@@ -106,7 +106,7 @@ openBuffer(
|
||||
'// Javascript code goes here',
|
||||
'javascript',
|
||||
buffersDropDown,
|
||||
buffersList
|
||||
buffersList,
|
||||
);
|
||||
|
||||
openBuffer(
|
||||
@@ -115,7 +115,7 @@ openBuffer(
|
||||
'/* CSS goes here */',
|
||||
'css',
|
||||
buffersDropDown,
|
||||
buffersList
|
||||
buffersList,
|
||||
);
|
||||
|
||||
// select main buffer by default and set the main tab to active
|
||||
@@ -286,7 +286,7 @@ CodeMirror.on(buffersDropDown, 'change', function () {
|
||||
selectBuffer(
|
||||
secondaryEditor,
|
||||
buffers,
|
||||
buffersDropDown.options[buffersDropDown.selectedIndex].value
|
||||
buffersDropDown.options[buffersDropDown.selectedIndex].value,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ module.exports = (env = {}) => {
|
||||
alias: {
|
||||
rustpython: path.resolve(
|
||||
__dirname,
|
||||
env.rustpythonPkg || '../lib/pkg'
|
||||
env.rustpythonPkg || '../lib/pkg',
|
||||
),
|
||||
},
|
||||
},
|
||||
@@ -64,7 +64,7 @@ module.exports = (env = {}) => {
|
||||
new WasmPackPlugin({
|
||||
crateDirectory: path.join(__dirname, '../lib'),
|
||||
forceMode: 'release',
|
||||
})
|
||||
}),
|
||||
);
|
||||
}
|
||||
return config;
|
||||
|
||||
Reference in New Issue
Block a user