Skip to content

Commit

Permalink
feat: upgrade to deno_ast 0.29
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Aug 31, 2023
1 parent 7db6bc9 commit 3cb074f
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 53 deletions.
123 changes: 79 additions & 44 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ name = "ddoc"
[dependencies]
anyhow = { version = "1.0.58", optional = true }
cfg-if = "1.0.0"
deno_ast = "0.28.0"
deno_graph = "0.52.0"
deno_ast = "0.29.0"
deno_graph = "0.53.0"
futures = "0.3.26"
import_map = "0.15.0"
lazy_static = "1.4.0"
Expand Down
3 changes: 2 additions & 1 deletion examples/ddoc/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ use std::fs::read_to_string;
struct SourceFileLoader {}

impl Loader for SourceFileLoader {
fn load(
fn load_with_cache_setting(
&mut self,
specifier: &ModuleSpecifier,
_is_dynamic: bool,
_cache_setting: deno_graph::source::LoaderCacheSetting,
) -> LoadFuture {
let result = if specifier.scheme() == "file" {
let path = specifier.to_file_path().unwrap();
Expand Down
Loading

0 comments on commit 3cb074f

Please sign in to comment.