If you would like to use the shared code only in one function, then you would need to add the bin folder along with the .ddl file in the required Azure Function folder.
Another major advantage of using class libraries it that it improves performance, as they are already compiled and ready for execution.