What ways to attach a library to a form?
Like explain by Clive, add libraries directly in the form via '#attached' parameter works. The mistake in my case was to don't send my form properly to my template file. See  Send a form to twig template