Skip to content

Commit

Permalink
chore: update todos
Browse files Browse the repository at this point in the history
  • Loading branch information
saecki committed Jun 29, 2024
1 parent f99f442 commit 171cd0e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/crates/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ end
function M.parse_crate(json_str)
local lines = vim.split(json_str, '\n', { trimempty = true })

-- TODO: fetch remaining metadata from the API_ENDPOINT
---@type ApiCrate
local crate = {
-- name = c.id,
Expand Down Expand Up @@ -377,9 +378,6 @@ function M.parse_crate(json_str)
if json.features2 then
---@diagnostic disable-next-line: no-unknown
for n, m in pairs(json.features2) do
-- TODO: handle `features2` syntaxes
-- - explicit `dep:<crate_name>`
-- - weak dependencies `pkg?/feat`
table.sort(m)
version.features:insert({
name = n,
Expand Down

0 comments on commit 171cd0e

Please sign in to comment.