Compare commits
7 Commits
v0.1.0
...
b2c426400b
Author | SHA1 | Date | |
---|---|---|---|
|
b2c426400b | ||
08145eed13 | |||
fb4bd51d71 | |||
|
3a3af4757c | ||
69c8b7409b
|
|||
85b6079b60
|
|||
989f073061
|
12
CHANGELOG.md
12
CHANGELOG.md
@@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.3.0] - 2024-11-17
|
||||
|
||||
### Added
|
||||
- rename and publish
|
||||
|
||||
## [0.2.0] - 2024-08-02
|
||||
|
||||
### Added
|
||||
- use actual delimination
|
||||
- use source instead
|
||||
- add inner error
|
||||
|
||||
## [0.1.0] - 2024-08-02
|
||||
|
||||
### Added
|
||||
|
28
Cargo.lock
generated
28
Cargo.lock
generated
@@ -1,6 +1,6 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "aho-corasick"
|
||||
@@ -52,19 +52,6 @@ version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||
|
||||
[[package]]
|
||||
name = "drift"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-trait",
|
||||
"thiserror",
|
||||
"tokio",
|
||||
"tokio-util",
|
||||
"tracing",
|
||||
"tracing-test",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "futures-core"
|
||||
version = "0.3.30"
|
||||
@@ -140,6 +127,19 @@ dependencies = [
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nodrift"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-trait",
|
||||
"thiserror",
|
||||
"tokio",
|
||||
"tokio-util",
|
||||
"tracing",
|
||||
"tracing-test",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nu-ansi-term"
|
||||
version = "0.46.0"
|
||||
|
@@ -3,7 +3,7 @@ members = ["crates/*"]
|
||||
resolver = "2"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.1.0"
|
||||
version = "0.3.0"
|
||||
|
||||
[workspace.dependencies]
|
||||
drift = { path = "crates/drift" }
|
||||
|
@@ -1,6 +1,8 @@
|
||||
[package]
|
||||
name = "drift"
|
||||
name = "nodrift"
|
||||
version.workspace = true
|
||||
description = "no Drift is an application for scheduling recurring jobs"
|
||||
license = "MIT"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
@@ -5,8 +5,11 @@ use std::future::Future;
|
||||
use tokio::time;
|
||||
use tokio_util::sync::CancellationToken;
|
||||
|
||||
#[derive(Debug, Clone, thiserror::Error)]
|
||||
pub enum DriftError {}
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum DriftError {
|
||||
#[error("job failed with inner error: {0}")]
|
||||
JobError(#[source] anyhow::Error),
|
||||
}
|
||||
|
||||
pub fn schedule<F, Fut>(interval: Duration, func: F) -> CancellationToken
|
||||
where
|
||||
|
Reference in New Issue
Block a user