Ititial commit. It works somehow.

This commit is contained in:
AB
2020-04-15 01:55:02 +03:00
commit 530d56bcb2
5 changed files with 328 additions and 0 deletions

43
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,43 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"env": {"RUST_BACKTRACE": "1"},
"request": "launch",
"name": "Debug executable 'musfuse'",
"cargo": {
"args": [
"run",
],
},
"args": [
"mnt"
],
"cwd": "${workspaceFolder}",
"postDebugTask": "Umount FUSE",
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'musfuse'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=musfuse",
"--package=musfuse"
],
"filter": {
"name": "musfuse",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}

22
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,22 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"subcommand": "build",
"problemMatcher": [
"$rustc"
],
"group": "build"
},
{
"label": "Umount FUSE",
"type": "shell",
"command": "fusermount -u mnt",
"group": "build",
"problemMatcher": []
}
]
}