Skip to content

Commit

Permalink
ISSUE: 42 and 30, implement headers to catalog v1 and get MimeType (#52)
Browse files Browse the repository at this point in the history
* implement headers to catalog v1 and get MimeType

* migragte header struct from carbonado to carbonado-node

* clean up .toml

* cargo.toml cleanup

* refactor mime_type to http

* clean up str_

* test write_read

* backup_test

* catalog_header breaks_test

* fix clippy errors

* backup_mimetype_check_once

* pass mime_type to tuple works

* clippy fix and health check

* Update src/backend/fs.rs

Co-authored-by: Hunter Beast <[email protected]>

* syntax error fs.rs closure

* segment:Bytes syntax error

* other solution WIP

* parsing tuple from result

* segment_bytes needs to be as Bytes

* backup working stream with mime_type

* debugged read_file for cataloog header split form content

* infer svg from 1024 bytes if mime_type is text/xml

* cleanup for svg mime_type

* cargo.toml point to carbanado after local testing

* clippy fix _url

* backup channels

* all file sizes bit to small

* mock watch in test

* mock watch in test debug

* cleanup debug

---------

Co-authored-by: Hunter Beast <[email protected]>
  • Loading branch information
rustchain64 and cryptoquick authored Dec 4, 2023
1 parent 86d23ac commit f08e6b8
Show file tree
Hide file tree
Showing 12 changed files with 618 additions and 143 deletions.
69 changes: 69 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
// 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",
"request": "launch",
"name": "Debug unit tests in library 'carbonado-node'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=carbonado-node"],
"filter": {
"name": "carbonado-node",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'carbonadod'",
"cargo": {
"args": ["build", "--bin=carbonadod", "--package=carbonado-node"],
"filter": {
"name": "carbonadod",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'carbonadod'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=carbonadod",
"--package=carbonado-node"
],
"filter": {
"name": "carbonadod",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug integration test 'file'",
"cargo": {
"args": ["test", "--no-run", "--test=file", "--package=carbonado-node"],
"filter": {
"name": "file",
"kind": "test"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
Loading

0 comments on commit f08e6b8

Please sign in to comment.