Closed
Description
Now that am_list (both the binary and the library) is stable, it's probably ready to be included in am entirely. There are 2 main things to take care of when integrating this:
- as the library is used in other projects (including the WIP github app) the library part of
ammust either:- be fully available on crates.io, or
- have
am_listas a workspace member that can be published
In any case, it's probably going to have an impact on the release cycle for am, as adding/fixing support for specific languages must trigger a new version release as soon as possible for the dependent projects.
- What should be the name of the subcommand for listing the names of the functions in the project ?
I think all the rest can be handled without too much issue, I can do that integration once those points are solved.
Metadata
Metadata
Assignees
Labels
No labels
Activity
mellowagain commentedon Jul 31, 2023
i think there is nothing stopping us from publishing the
amlibrary on crates.io, no? it's already setup this way as we have two crates in this repo actually,am(the cli tool) andautometrics-am(the library).imo adjusting the release schedule also doesnt seem like a problem
for the subcommand, maybe something like
am functions?gagbo commentedon Jul 31, 2023
I also need to remember to change the download location in the github action. I'll try to track the issue there as well
gagbo commentedon Aug 29, 2023
Seems like it's going to be the plan:
am_listwon't be published on crates-io anymore: for the time being there are no dependents onam_listthat also want to be on crates-io. This means all dependents onam_listcan just use a git-dependency in their Cargo.tomlam_listwill just be included as a subdirectory of the library: for the time being,amis not a workspace, and changing that adds a lot of extra work that's not really necessary today. To balance the risk of having a huge dependency tree when someone just wants theam_listlibrary part, the library part ofamwill have a lot of features about each submodule (all active by default, for the binary). Then dependents can pick each part ofamthey want usingno-default-features = trueam:(file_name, line, column))