Compare commits
No commits in common. "254e1426085d249fff80740e8fe9b76c3cad8799" and "3b56224a5b236f9b3a770278b344f3d568fbf15f" have entirely different histories.
254e142608
...
3b56224a5b
2
.cargo/config.toml
Normal file
2
.cargo/config.toml
Normal file
@ -0,0 +1,2 @@
|
||||
[build]
|
||||
target-dir = 'dist/target'
|
13
.editorconfig
Normal file
13
.editorconfig
Normal file
@ -0,0 +1,13 @@
|
||||
# Editor configuration, see http://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.md]
|
||||
max_line_length = off
|
||||
trim_trailing_whitespace = false
|
46
.gitignore
vendored
46
.gitignore
vendored
@ -1,3 +1,47 @@
|
||||
# See https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
|
||||
|
||||
# compiled output
|
||||
dist
|
||||
tmp
|
||||
out-tsc
|
||||
|
||||
# dependencies
|
||||
node_modules
|
||||
|
||||
# IDEs and editors
|
||||
/.idea
|
||||
.project
|
||||
.classpath
|
||||
.c9/
|
||||
*.launch
|
||||
.settings/
|
||||
*.sublime-workspace
|
||||
|
||||
# IDE - VSCode
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
|
||||
# misc
|
||||
/.sass-cache
|
||||
/connect.lock
|
||||
/coverage
|
||||
/libpeerconnection.log
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
testem.log
|
||||
/typings
|
||||
|
||||
|
||||
/target
|
||||
|
||||
.env
|
||||
.env
|
||||
|
||||
# System Files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
.nx/cache
|
||||
.nx/workspace-data
|
||||
|
9428
.pnp.cjs
generated
Executable file
9428
.pnp.cjs
generated
Executable file
File diff suppressed because one or more lines are too long
2126
.pnp.loader.mjs
generated
Normal file
2126
.pnp.loader.mjs
generated
Normal file
File diff suppressed because it is too large
Load Diff
7
.vscode/extensions.json
vendored
Normal file
7
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"recommendations": [
|
||||
|
||||
"nrwl.angular-console",
|
||||
"esbenp.prettier-vscode"
|
||||
]
|
||||
}
|
BIN
.yarn/install-state.gz
Normal file
BIN
.yarn/install-state.gz
Normal file
Binary file not shown.
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -116,7 +116,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bot-terre"
|
||||
name = "bot"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"poise",
|
||||
|
15
Cargo.toml
15
Cargo.toml
@ -1,8 +1,13 @@
|
||||
[package]
|
||||
name = "bot-terre"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
[workspace]
|
||||
resolver = '2'
|
||||
members = [
|
||||
'apps/bot',
|
||||
]
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
||||
[workspace.dependencies]
|
||||
poise = "0.6.1"
|
||||
tokio = {version = "1.45.0", features = ["rt-multi-thread"]}
|
||||
|
11
Taskfile.yaml
Normal file
11
Taskfile.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
version: "2.0"
|
||||
|
||||
|
||||
tasks:
|
||||
init:
|
||||
desc: "Initialize the project"
|
||||
cmds:
|
||||
- echo "Initializing project..."
|
||||
- mkdir -p src tests
|
||||
- touch src/main.py tests/test_main.py
|
||||
silent: true
|
0
apps/.gitkeep
Normal file
0
apps/.gitkeep
Normal file
11
apps/bot/Cargo.toml
Normal file
11
apps/bot/Cargo.toml
Normal file
@ -0,0 +1,11 @@
|
||||
[package]
|
||||
name = "bot"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
|
||||
[dependencies]
|
||||
poise = { workspace = true }
|
||||
tokio = { workspace = true }
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
63
apps/bot/project.json
Normal file
63
apps/bot/project.json
Normal file
@ -0,0 +1,63 @@
|
||||
{
|
||||
"name": "bot",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"projectType": "application",
|
||||
"sourceRoot": "apps/bot/src",
|
||||
"targets": {
|
||||
"build": {
|
||||
"cache": true,
|
||||
"executor": "@monodon/rust:build",
|
||||
"outputs": [
|
||||
"{options.target-dir}"
|
||||
],
|
||||
"options": {
|
||||
"target-dir": "dist/target/bot"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"release": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"cache": true,
|
||||
"executor": "@monodon/rust:test",
|
||||
"outputs": [
|
||||
"{options.target-dir}"
|
||||
],
|
||||
"options": {
|
||||
"target-dir": "dist/target/bot"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"release": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"cache": true,
|
||||
"executor": "@monodon/rust:lint",
|
||||
"outputs": [
|
||||
"{options.target-dir}"
|
||||
],
|
||||
"options": {
|
||||
"target-dir": "dist/target/bot"
|
||||
}
|
||||
},
|
||||
"run": {
|
||||
"executor": "@monodon/rust:run",
|
||||
"outputs": [
|
||||
"{options.target-dir}"
|
||||
],
|
||||
"options": {
|
||||
"target-dir": "dist/target/bot"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"release": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": []
|
||||
}
|
14
compose.yaml
Normal file
14
compose.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
services:
|
||||
database:
|
||||
image: clickhouse/clickhouse-server:latest
|
||||
ports:
|
||||
- 8123:8123
|
||||
- 9000:9000
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 262144
|
||||
hard: 262144
|
||||
environment:
|
||||
CLICKHOUSE_USER: default
|
||||
CLICKHOUSE_PASSWORD: password
|
||||
CLICKHOUSE_DB: default
|
0
libs/.gitkeep
Normal file
0
libs/.gitkeep
Normal file
16
nx.json
Normal file
16
nx.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
||||
"namedInputs": {
|
||||
"default": [
|
||||
"{projectRoot}/**/*",
|
||||
"sharedGlobals"
|
||||
],
|
||||
"production": [
|
||||
"default"
|
||||
],
|
||||
"sharedGlobals": []
|
||||
},
|
||||
"plugins": [
|
||||
"@monodon/rust"
|
||||
]
|
||||
}
|
1898
package-lock.json
generated
Normal file
1898
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
17
package.json
Normal file
17
package.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "@bot-terre/source",
|
||||
"version": "0.0.0",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"nx": "nx"
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@monodon/rust": "2.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nx/workspace": "21.0.3",
|
||||
"nx": "21.0.3"
|
||||
},
|
||||
"packageManager": "yarn@4.9.1"
|
||||
}
|
Loading…
Reference in New Issue
Block a user