15 Commits

Author SHA1 Message Date
c6f2f7e8b4 Merge pull request #19 from eRgo35/release-plz-2024-12-15T19-02-37Z
Some checks failed
Rust / build (push) Failing after 13s
Release Plz / Release-plz (push) Failing after 49s
chore: release v0.10.8
2024-12-15 20:10:46 +01:00
5a1abb90b9 chore: rebuild and version bump 2024-12-15 20:10:17 +01:00
Michał Czyż
9ce77fdb66 chore: release v0.10.8 2024-12-15 20:02:38 +01:00
089bfa18cf Merge branch 'senpai' of github.com:eRgo35/lyra into senpai 2024-12-15 20:02:03 +01:00
2fb262b804 fix: nix minor overlay changes 2024-12-15 20:01:39 +01:00
c317b53c2e Merge pull request #16 from eRgo35/release-plz-2024-08-15T18-15-55Z
chore: release v0.10.7
2024-12-15 19:18:28 +01:00
b09fc82611 fix: lock rebuild sync 2024-12-15 19:15:28 +01:00
c627352057 fix: upgraded deps 2024-12-15 19:08:24 +01:00
45236f248e feat: nix flake 2024-12-15 18:55:28 +01:00
Michał Czyż
e20a98f378 chore: release 2024-08-16 14:35:51 +02:00
66052e4f74 chore: version bump to 0.10.6
Some checks failed
Rust / build (push) Has been cancelled
Release Plz / Release-plz (push) Has been cancelled
2024-08-16 14:33:37 +02:00
09b0d6fd9d fix: yt-dlp errors for playlist parsing 2024-08-16 14:33:22 +02:00
c27d1f70da chore: version bump to 0.10.5
Some checks are pending
Rust / build (push) Waiting to run
Release Plz / Release-plz (push) Waiting to run
2024-08-15 20:13:42 +02:00
73b885e5d6 fix: version requirements for crates.io 2024-08-15 20:11:35 +02:00
8c0eb62d41 fix: yt-dlp errors 2024-08-15 20:05:52 +02:00
8 changed files with 943 additions and 405 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
/target
**/target
.env
.direnv/

View File

@@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.10.8](https://github.com/eRgo35/lyra/compare/v0.10.7...v0.10.8) - 2024-12-15
### Fixed
- nix minor overlay changes
## [0.10.7](https://github.com/eRgo35/lyra/compare/v0.10.6...v0.10.7) - 2024-08-16
### Other
- update Cargo.lock dependencies
## [0.10.4](https://github.com/eRgo35/lyra/compare/v0.10.3...v0.10.4) - 2024-08-13
### Fixed

1195
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
[package]
name = "lyra"
version = "0.10.4"
version = "0.10.8"
authors = ["Michał Czyż <mike@c2yz.com>"]
edition = "2021"
description = "A featureful Discord bot written in Rust."
@@ -23,9 +23,9 @@ regex = "1.10.6"
reqwest = { version = "0.11.27", features = ["json"] }
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.122"
songbird = { version = "0.4.3", default-features = true, features = [
songbird = { version = "0.4.6", default-features = true, features = [
"builtin-queue",
] }
], git = "https://github.com/eRgo35/songbird" }
serenity = { default-features = true, features = [
"cache",
"framework",

46
flake.lock generated Normal file
View File

@@ -0,0 +1,46 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1734119587,
"narHash": "sha256-AKU6qqskl0yf2+JdRdD0cfxX4b9x3KKV5RqA6wijmPM=",
"rev": "3566ab7246670a43abd2ffa913cc62dad9cdf7d5",
"revCount": 721821,
"type": "tarball",
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.721821%2Brev-3566ab7246670a43abd2ffa913cc62dad9cdf7d5/0193cb18-1103-723d-8c38-29b3e808b002/source.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay"
}
},
"rust-overlay": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1734230139,
"narHash": "sha256-zsp0Mz8VgyIAnU8UhP/YT1g+zlsl+NIJTBMAbY+RifQ=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "150fbc8aa2bc501041810bbc1dbfe73694a861be",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

87
flake.nix Normal file
View File

@@ -0,0 +1,87 @@
{
description = "A Nix-flake-based Rust development environment";
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
rust-overlay,
}:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forEachSupportedSystem =
f:
nixpkgs.lib.genAttrs supportedSystems (
system:
f {
pkgs = import nixpkgs {
inherit system;
overlays = [
rust-overlay.overlays.default
self.overlays.default
];
};
}
);
in
{
overlays.default = final: prev: {
rustToolchain =
let
rust = prev.rust-bin;
in
if builtins.pathExists ./rust-toolchain.toml then
rust.fromRustupToolchainFile ./rust-toolchain.toml
else if builtins.pathExists ./rust-toolchain then
rust.fromRustupToolchainFile ./rust-toolchain
else
rust.stable.latest.default.override {
extensions = [
"rust-src"
"rustfmt"
];
};
};
devShells = forEachSupportedSystem (
{ pkgs }:
{
default = pkgs.mkShell {
packages = with pkgs; [
rustToolchain
openssl
pkg-config
cargo-deny
cargo-edit
cargo-watch
rust-analyzer
cmake
opusTools
opusfile
rustup
cargo-cross
gcc
];
env = {
# Required by rust-analyzer
RUST_SRC_PATH = "${pkgs.rustToolchain}/lib/rustlib/src/rust/library";
};
};
}
);
};
}

View File

@@ -132,6 +132,7 @@ async fn parse_data(data: String) -> VecDeque<String> {
.unwrap();
let list = Command::new("yt-dlp")
.args(["--username", "oauth2", "--password", "''"])
.args(["-j", "--flat-playlist", track])
.output()
.expect("Failed to execute process")