Skip to content

Commit

Permalink
Merge pull request #142 from edgenai/fix/misc
Browse files Browse the repository at this point in the history
Fix/misc
  • Loading branch information
pedro-devv authored Apr 29, 2024
2 parents ada21e1 + d5e4c62 commit c1f604f
Show file tree
Hide file tree
Showing 26 changed files with 1,490 additions and 373 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ jobs:

- name: Add rust target (macOS)
if: ${{ matrix.runner == 'macos-latest' }}
run: rustup target add aarch64-apple-darwin
run: |
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
- name: Add rust target (Other)
if: ${{ matrix.runner != 'macos-latest' }}
Expand Down
83 changes: 74 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/edgen_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ async-trait = { workspace = true }
dashmap = { workspace = true }
directories = { workspace = true }
derive_more = { workspace = true }
either = { workspace = true }
edgen_async_compat = { path = "../edgen_async_compat", features = ["runtime-tokio"] }
notify = { workspace = true }
num_cpus = { workspace = true }
Expand Down
4 changes: 0 additions & 4 deletions crates/edgen_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

extern crate alloc;

use std::future::Future;
use std::time::Duration;

pub mod llm;
Expand All @@ -29,9 +28,6 @@ pub mod settings;
pub mod image_generation;
pub mod perishable;

/// A generic [`Box`]ed [`Future`], used to emulate `async` functions in traits.
pub type BoxedFuture<'a, T> = Box<dyn Future<Output = T> + Send + Unpin + 'a>;

/// Return the [`Duration`] that cleanup threads should wait before looking for and freeing unused
/// resources, after last doing so.
pub fn cleanup_interval() -> Duration {
Expand Down
Loading

0 comments on commit c1f604f

Please sign in to comment.